Struct netstack3_core::device_socket::SocketInfo
source · pub struct SocketInfo<D> {
pub protocol: Option<Protocol>,
pub device: TargetDevice<D>,
}
Expand description
Information about the bound state of a socket.
Fields§
§protocol: Option<Protocol>
The protocol the socket is bound to, or None
if no protocol is set.
device: TargetDevice<D>
The device selector for which the socket is set.
Trait Implementations§
Auto Trait Implementations§
impl<D> Freeze for SocketInfo<D>where
D: Freeze,
impl<D> RefUnwindSafe for SocketInfo<D>where
D: RefUnwindSafe,
impl<D> Send for SocketInfo<D>where
D: Send,
impl<D> Sync for SocketInfo<D>where
D: Sync,
impl<D> Unpin for SocketInfo<D>where
D: Unpin,
impl<D> UnwindSafe for SocketInfo<D>where
D: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
source§fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
Handle a timer firing.