diff options
| author | Leon Camus <[email protected]> | 2023-03-08 12:37:00 +0100 |
|---|---|---|
| committer | Leon Camus <[email protected]> | 2023-03-08 12:37:00 +0100 |
| commit | e484cb1b875adc7a0865299df5167f94302fcf49 (patch) | |
| tree | cac633b95faf9c20312a70adedc807175241f8d0 /embassy-net/src/lib.rs | |
| parent | 993875e11fc58a476b1e08d4aba752b83bb2b885 (diff) | |
refactor: Multicast method modifiers on stack to public
revert: udp.rs
Diffstat (limited to 'embassy-net/src/lib.rs')
| -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 05bbd07f2..7b9d0e773 100644 --- a/embassy-net/src/lib.rs +++ b/embassy-net/src/lib.rs | |||
| @@ -306,7 +306,7 @@ impl<D: Driver + 'static> Stack<D> { | |||
| 306 | 306 | ||
| 307 | #[cfg(feature = "igmp")] | 307 | #[cfg(feature = "igmp")] |
| 308 | impl<D: Driver + smoltcp::phy::Device + 'static> Stack<D> { | 308 | impl<D: Driver + smoltcp::phy::Device + 'static> Stack<D> { |
| 309 | pub(crate) fn join_multicast_group<T>(&self, addr: T) -> Result<bool, smoltcp::iface::MulticastError> | 309 | pub fn join_multicast_group<T>(&self, addr: T) -> Result<bool, smoltcp::iface::MulticastError> |
| 310 | where | 310 | where |
| 311 | T: Into<IpAddress>, | 311 | T: Into<IpAddress>, |
| 312 | { | 312 | { |
| @@ -318,7 +318,7 @@ impl<D: Driver + smoltcp::phy::Device + 'static> Stack<D> { | |||
| 318 | }) | 318 | }) |
| 319 | } | 319 | } |
| 320 | 320 | ||
| 321 | pub(crate) fn leave_multicast_group<T>(&self, addr: T) -> Result<bool, smoltcp::iface::MulticastError> | 321 | pub fn leave_multicast_group<T>(&self, addr: T) -> Result<bool, smoltcp::iface::MulticastError> |
| 322 | where | 322 | where |
| 323 | T: Into<IpAddress>, | 323 | T: Into<IpAddress>, |
| 324 | { | 324 | { |
| @@ -330,7 +330,7 @@ impl<D: Driver + smoltcp::phy::Device + 'static> Stack<D> { | |||
| 330 | }) | 330 | }) |
| 331 | } | 331 | } |
| 332 | 332 | ||
| 333 | pub(crate) fn has_multicast_group<T: Into<IpAddress>>(&self, addr: T) -> bool { | 333 | pub fn has_multicast_group<T: Into<IpAddress>>(&self, addr: T) -> bool { |
| 334 | self.socket.borrow().iface.has_multicast_group(addr) | 334 | self.socket.borrow().iface.has_multicast_group(addr) |
| 335 | } | 335 | } |
| 336 | } | 336 | } |
