pub enum AcceptedSocketKeepaliveReason {
SetFailed {
option: KeepaliveOption,
platform: PlatformName,
os_error: i32,
},
ReadbackFailed {
option: KeepaliveOption,
platform: PlatformName,
os_error: i32,
},
ReadbackMismatch {
mismatch: KeepaliveReadbackMismatch,
platform: PlatformName,
},
}Expand description
Accepted-socket-only set or read-back certification failure.
Variants§
SetFailed
Setting a required option failed.
Fields
§
option: KeepaliveOptionFirst option whose set failed.
§
platform: PlatformNameSigned target-platform descriptor.
ReadbackFailed
Reading back a required option failed.
Fields
§
option: KeepaliveOptionFirst option whose read-back failed.
§
platform: PlatformNameSigned target-platform descriptor.
ReadbackMismatch
Read-back value differs from the exact requested value.
Fields
§
mismatch: KeepaliveReadbackMismatchExact option-specific requested/effective pair.
§
platform: PlatformNameSigned target-platform descriptor.
Trait Implementations§
Source§impl Clone for AcceptedSocketKeepaliveReason
impl Clone for AcceptedSocketKeepaliveReason
Source§fn clone(&self) -> AcceptedSocketKeepaliveReason
fn clone(&self) -> AcceptedSocketKeepaliveReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Eq for AcceptedSocketKeepaliveReason
impl StructuralPartialEq for AcceptedSocketKeepaliveReason
Auto Trait Implementations§
impl Freeze for AcceptedSocketKeepaliveReason
impl RefUnwindSafe for AcceptedSocketKeepaliveReason
impl Send for AcceptedSocketKeepaliveReason
impl Sync for AcceptedSocketKeepaliveReason
impl Unpin for AcceptedSocketKeepaliveReason
impl UnsafeUnpin for AcceptedSocketKeepaliveReason
impl UnwindSafe for AcceptedSocketKeepaliveReason
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