#[repr(u8)]pub enum Sockoption {
Show 27 variants
Noop = 0,
ReusePort = 1,
ReuseAddr = 2,
NoDelay = 3,
DontRoute = 4,
OnlyV6 = 5,
Broadcast = 6,
MulticastLoopV4 = 7,
MulticastLoopV6 = 8,
Promiscuous = 9,
Listening = 10,
LastError = 11,
KeepAlive = 12,
Linger = 13,
OobInline = 14,
RecvBufSize = 15,
SendBufSize = 16,
RecvLowat = 17,
SendLowat = 18,
RecvTimeout = 19,
SendTimeout = 20,
ConnectTimeout = 21,
AcceptTimeout = 22,
Ttl = 23,
MulticastTtlV4 = 24,
Type = 25,
Proto = 26,
}
Variants§
Noop = 0
ReusePort = 1
ReuseAddr = 2
NoDelay = 3
DontRoute = 4
OnlyV6 = 5
Broadcast = 6
MulticastLoopV4 = 7
MulticastLoopV6 = 8
Promiscuous = 9
Listening = 10
LastError = 11
KeepAlive = 12
Linger = 13
OobInline = 14
RecvBufSize = 15
SendBufSize = 16
RecvLowat = 17
SendLowat = 18
RecvTimeout = 19
SendTimeout = 20
ConnectTimeout = 21
AcceptTimeout = 22
Ttl = 23
MulticastTtlV4 = 24
Type = 25
Proto = 26
Trait Implementations§
Source§impl Clone for Sockoption
impl Clone for Sockoption
Source§fn clone(&self) -> Sockoption
fn clone(&self) -> Sockoption
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 Sockoption
impl Debug for Sockoption
Source§impl<'de> Deserialize<'de> for Sockoption
impl<'de> Deserialize<'de> for Sockoption
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Sockoption, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Sockoption, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for Sockoption
impl Display for Sockoption
Source§impl From<&ArchivedJournalSockoptionV1> for Sockoption
impl From<&ArchivedJournalSockoptionV1> for Sockoption
Source§fn from(val: &ArchivedJournalSockoptionV1) -> Sockoption
fn from(val: &ArchivedJournalSockoptionV1) -> Sockoption
Converts to this type from the input type.
Source§impl From<JournalSockoptionV1> for Sockoption
impl From<JournalSockoptionV1> for Sockoption
Source§fn from(val: JournalSockoptionV1) -> Sockoption
fn from(val: JournalSockoptionV1) -> Sockoption
Converts to this type from the input type.
Source§impl From<Sockoption> for JournalSockoptionV1
impl From<Sockoption> for JournalSockoptionV1
Source§fn from(val: Sockoption) -> JournalSockoptionV1
fn from(val: Sockoption) -> JournalSockoptionV1
Converts to this type from the input type.
Source§impl From<Sockoption> for WasiSocketOption
impl From<Sockoption> for WasiSocketOption
Source§fn from(opt: Sockoption) -> Self
fn from(opt: Sockoption) -> Self
Converts to this type from the input type.
Source§impl FromToNativeWasmType for Sockoption
impl FromToNativeWasmType for Sockoption
Source§fn to_native(self) -> <Sockoption as FromToNativeWasmType>::Native
fn to_native(self) -> <Sockoption as FromToNativeWasmType>::Native
Convert self to
Self::Native
. Read moreSource§fn from_native(n: <Sockoption as FromToNativeWasmType>::Native) -> Sockoption
fn from_native(n: <Sockoption as FromToNativeWasmType>::Native) -> Sockoption
Source§fn is_from_store(&self, _store: &impl AsStoreRef) -> bool
fn is_from_store(&self, _store: &impl AsStoreRef) -> bool
Returns whether the given value is from the given store. Read more
Source§impl PartialEq for Sockoption
impl PartialEq for Sockoption
Source§impl Serialize for Sockoption
impl Serialize for Sockoption
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl ValueType for Sockoption
impl ValueType for Sockoption
Source§fn zero_padding_bytes(&self, _bytes: &mut [MaybeUninit<u8>])
fn zero_padding_bytes(&self, _bytes: &mut [MaybeUninit<u8>])
This method is passed a byte slice which contains the byte
representation of
self
. It must zero out any bytes which are
uninitialized (e.g. padding bytes).impl Copy for Sockoption
impl Eq for Sockoption
impl StructuralPartialEq for Sockoption
Auto Trait Implementations§
impl Freeze for Sockoption
impl RefUnwindSafe for Sockoption
impl Send for Sockoption
impl Sync for Sockoption
impl Unpin for Sockoption
impl UnwindSafe for Sockoption
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Upcastable for T
impl<T> Upcastable for T
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
Source§impl<T> Upcastable for T
impl<T> Upcastable for T
Source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
Source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref
Source§impl<A1> WasmTypeList for A1where
A1: FromToNativeWasmType,
impl<A1> WasmTypeList for A1where
A1: FromToNativeWasmType,
Source§type CStruct = S1<A1>
type CStruct = S1<A1>
The C type (a struct) that can hold/represent all the
represented values.
Source§unsafe fn from_array(
_store: &mut impl AsStoreMut,
array: <A1 as WasmTypeList>::Array,
) -> A1
unsafe fn from_array( _store: &mut impl AsStoreMut, array: <A1 as WasmTypeList>::Array, ) -> A1
Constructs
Self
based on an array of values. Read moreSource§unsafe fn from_slice(
store: &mut impl AsStoreMut,
slice: &[RawValue],
) -> Result<A1, TryFromSliceError>
unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue], ) -> Result<A1, TryFromSliceError>
Constructs
Self
based on a slice of values. Read moreSource§unsafe fn into_array(
self,
_store: &mut impl AsStoreMut,
) -> <A1 as WasmTypeList>::Array
unsafe fn into_array( self, _store: &mut impl AsStoreMut, ) -> <A1 as WasmTypeList>::Array
Builds and returns an array of type
Array
from a tuple
(list) of values. Read moreSource§fn empty_array() -> <A1 as WasmTypeList>::Array
fn empty_array() -> <A1 as WasmTypeList>::Array
Allocates and return an empty array of type
Array
that
will hold a tuple (list) of values, usually to hold the
returned values of a WebAssembly function call.Source§unsafe fn from_c_struct(
_store: &mut impl AsStoreMut,
c_struct: <A1 as WasmTypeList>::CStruct,
) -> A1
unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: <A1 as WasmTypeList>::CStruct, ) -> A1
Builds a tuple (list) of values from a C struct of type
CStruct
. Read moreSource§unsafe fn into_c_struct(
self,
_store: &mut impl AsStoreMut,
) -> <A1 as WasmTypeList>::CStruct
unsafe fn into_c_struct( self, _store: &mut impl AsStoreMut, ) -> <A1 as WasmTypeList>::CStruct
Builds and returns a C struct of type
CStruct
from a
tuple (list) of values. Read moreSource§unsafe fn write_c_struct_to_ptr(
c_struct: <A1 as WasmTypeList>::CStruct,
_ptr: *mut RawValue,
)
unsafe fn write_c_struct_to_ptr( c_struct: <A1 as WasmTypeList>::CStruct, _ptr: *mut RawValue, )
Writes the contents of a C struct to an array of
RawValue
. Read moreSource§fn wasm_types() -> &'static [Type]
fn wasm_types() -> &'static [Type]
Get the Wasm types for the tuple (list) of currently
represented values.