Enum netstack3_core::tcp::BindError
source · pub enum BindError {
AlreadyBound,
LocalAddressError(LocalAddressError),
}
Expand description
Possible errors when connecting a socket.
Variants§
AlreadyBound
The socket was already bound.
LocalAddressError(LocalAddressError)
The socket cannot bind to the local address.
Trait Implementations§
source§impl Error for BindError
impl Error for BindError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<LocalAddressError> for BindError
impl From<LocalAddressError> for BindError
source§fn from(source: LocalAddressError) -> Self
fn from(source: LocalAddressError) -> Self
Converts to this type from the input type.
source§impl<IpType: Ip> GenericOverIp<IpType> for BindError
impl<IpType: Ip> GenericOverIp<IpType> for BindError
source§impl PartialEq for BindError
impl PartialEq for BindError
impl StructuralPartialEq for BindError
Auto Trait Implementations§
impl Freeze for BindError
impl RefUnwindSafe for BindError
impl Send for BindError
impl Sync for BindError
impl Unpin for BindError
impl UnwindSafe for BindError
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.