pub enum SetDualStackEnabledError {
SocketIsBound,
NotCapable(NotDualStackCapableError),
}
Expand description
An error encountered while enabling or disabling dual-stack operation.
Variants§
SocketIsBound
A socket can only have dual stack enabled or disabled while unbound.
NotCapable(NotDualStackCapableError)
The socket’s protocol is not dual stack capable.
Trait Implementations§
Source§impl Clone for SetDualStackEnabledError
impl Clone for SetDualStackEnabledError
Source§fn clone(&self) -> SetDualStackEnabledError
fn clone(&self) -> SetDualStackEnabledError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SetDualStackEnabledError
impl Debug for SetDualStackEnabledError
Source§impl Display for SetDualStackEnabledError
impl Display for SetDualStackEnabledError
Source§impl Error for SetDualStackEnabledError
impl Error for SetDualStackEnabledError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<NotDualStackCapableError> for SetDualStackEnabledError
impl From<NotDualStackCapableError> for SetDualStackEnabledError
Source§fn from(source: NotDualStackCapableError) -> Self
fn from(source: NotDualStackCapableError) -> Self
Converts to this type from the input type.
Source§impl<IpType: Ip> GenericOverIp<IpType> for SetDualStackEnabledError
impl<IpType: Ip> GenericOverIp<IpType> for SetDualStackEnabledError
Source§type Type = SetDualStackEnabledError
type Type = SetDualStackEnabledError
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.Source§impl PartialEq for SetDualStackEnabledError
impl PartialEq for SetDualStackEnabledError
impl Copy for SetDualStackEnabledError
impl Eq for SetDualStackEnabledError
impl StructuralPartialEq for SetDualStackEnabledError
Auto Trait Implementations§
impl Freeze for SetDualStackEnabledError
impl RefUnwindSafe for SetDualStackEnabledError
impl Send for SetDualStackEnabledError
impl Sync for SetDualStackEnabledError
impl Unpin for SetDualStackEnabledError
impl UnwindSafe for SetDualStackEnabledError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
Source§impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
Source§fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
Send a frame. Read more
Source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
Source§fn handle_timer(
&mut self,
bindings_ctx: &mut BC,
dispatch: Id,
timer: <BC as TimerBindingsTypes>::UniqueTimerId,
)
fn handle_timer( &mut self, bindings_ctx: &mut BC, dispatch: Id, timer: <BC as TimerBindingsTypes>::UniqueTimerId, )
Handle a timer firing. Read more