diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-09-28 03:46:48 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-09-28 03:47:14 +0200 |
| commit | 901f0257bd4b64d6ed846de701a0b71b1de4b16d (patch) | |
| tree | a3ba6ae7a30cd2f9534bebd0097a87d6dc0bedb0 /embassy-net/src | |
| parent | fec4194ae61f9c227c5e6df1e2d8f1344bb6a990 (diff) | |
net: allow non-'static drivers.
Diffstat (limited to 'embassy-net/src')
| -rw-r--r-- | embassy-net/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-net/src/lib.rs b/embassy-net/src/lib.rs index f48d3372e..0d7ac47a2 100644 --- a/embassy-net/src/lib.rs +++ b/embassy-net/src/lib.rs | |||
| @@ -258,7 +258,7 @@ fn to_smoltcp_hardware_address(addr: driver::HardwareAddress) -> HardwareAddress | |||
| 258 | } | 258 | } |
| 259 | } | 259 | } |
| 260 | 260 | ||
| 261 | impl<D: Driver + 'static> Stack<D> { | 261 | impl<D: Driver> Stack<D> { |
| 262 | /// Create a new network stack. | 262 | /// Create a new network stack. |
| 263 | pub fn new<const SOCK: usize>( | 263 | pub fn new<const SOCK: usize>( |
| 264 | mut device: D, | 264 | mut device: D, |
| @@ -555,7 +555,7 @@ impl<D: Driver + 'static> Stack<D> { | |||
| 555 | } | 555 | } |
| 556 | 556 | ||
| 557 | #[cfg(feature = "igmp")] | 557 | #[cfg(feature = "igmp")] |
| 558 | impl<D: Driver + 'static> Stack<D> { | 558 | impl<D: Driver> Stack<D> { |
| 559 | /// Join a multicast group. | 559 | /// Join a multicast group. |
| 560 | pub async fn join_multicast_group<T>(&self, addr: T) -> Result<bool, MulticastError> | 560 | pub async fn join_multicast_group<T>(&self, addr: T) -> Result<bool, MulticastError> |
| 561 | where | 561 | where |
| @@ -645,7 +645,7 @@ impl SocketStack { | |||
| 645 | } | 645 | } |
| 646 | } | 646 | } |
| 647 | 647 | ||
| 648 | impl<D: Driver + 'static> Inner<D> { | 648 | impl<D: Driver> Inner<D> { |
| 649 | #[cfg(feature = "proto-ipv4")] | 649 | #[cfg(feature = "proto-ipv4")] |
| 650 | pub fn set_config_v4(&mut self, _s: &mut SocketStack, config: ConfigV4) { | 650 | pub fn set_config_v4(&mut self, _s: &mut SocketStack, config: ConfigV4) { |
| 651 | // Handle static config. | 651 | // Handle static config. |
