Enum wasmer_wasix::types::net::SockProto
source · pub enum SockProto {
Show 264 variants
Ip,
Icmp,
Igmp,
ProtoThree,
Ipip,
ProtoFive,
Tcp,
ProtoSeven,
Egp,
ProtoNine,
ProtoTen,
ProtoEleven,
Pup,
ProtoThirteen,
ProtoFourteen,
ProtoFifteen,
ProtoSixteen,
Udp,
ProtoEighteen,
ProtoNineteen,
ProtoTwenty,
ProtoTwentyone,
Idp,
ProtoTwentythree,
ProtoTwentyfour,
ProtoTwentyfive,
ProtoTwentysix,
ProtoTwentyseven,
ProtoTwentyeight,
ProtoTp,
ProtoThirty,
ProtoThirtyone,
ProtoThirtytwo,
Dccp,
ProtoThirtyfour,
ProtoThirtyfive,
ProtoThirtysix,
ProtoThirtyseven,
ProtoThirtyeight,
ProtoThirtynine,
ProtoFourty,
Ipv6,
ProtoFourtytwo,
Routing,
Fragment,
ProtoFourtyfive,
Rsvp,
Gre,
ProtoFourtyeight,
ProtoFourtynine,
Esp,
Ah,
ProtoFiftytwo,
ProtoFiftythree,
ProtoFiftyfour,
ProtoFiftyfive,
ProtoFiftysix,
ProtoFiftyseven,
Icmpv6,
None,
Dstopts,
ProtoSixtyone,
ProtoSixtytwo,
ProtoSixtythree,
ProtoSixtyfour,
ProtoSixtyfive,
ProtoSixtysix,
ProtoSixtyseven,
ProtoSixtyeight,
ProtoSixtynine,
ProtoSeventy,
ProtoSeventyone,
ProtoSeventytwo,
ProtoSeventythree,
ProtoSeventyfour,
ProtoSeventyfive,
ProtoSeventysix,
ProtoSeventyseven,
ProtoSeventyeight,
ProtoSeventynine,
ProtoEighty,
ProtoEightyone,
ProtoEightytwo,
ProtoEightythree,
ProtoEightyfour,
ProtoEightyfive,
ProtoEightysix,
ProtoEightyseven,
ProtoEightyeight,
ProtoEightynine,
ProtoNinety,
ProtoNinetyone,
Mtp,
ProtoNinetythree,
Beetph,
ProtoNinetyfive,
ProtoNinetysix,
ProtoNineetyseven,
Encap,
ProtoNinetynine,
ProtoOnehundred,
ProtoOnehundredandone,
ProtoOnehundredandtwo,
Pim,
ProtoOnehundredandfour,
ProtoOnehundredandfive,
ProtoOnehundredandsix,
ProtoOnehundredandseven,
Comp,
ProtoOnehundredandnine,
ProtoOnehundredandten,
ProtoOnehundredandeleven,
ProtoOnehundredandtwelve,
ProtoOnehundredandthirteen,
ProtoOnehundredandfourteen,
ProtoOnehundredandfifteen,
ProtoOnehundredandsixteen,
ProtoOnehundredandseventeen,
ProtoOnehundredandeighteen,
ProtoOnehundredandnineteen,
ProtoOnehundredandtwenty,
ProtoOnehundredandtwentyone,
ProtoOnehundredandtwentytwo,
ProtoOnehundredandtwentythree,
ProtoOnehundredandtwentyfour,
ProtoOnehundredandtwentyfive,
ProtoOnehundredandtwentysix,
ProtoOnehundredandtwentyseven,
ProtoOnehundredandtwentyeight,
ProtoOnehundredandtwentynine,
ProtoOnehundredandthirty,
ProtoOnehundredandthirtyone,
Sctp,
ProtoOnehundredandthirtythree,
ProtoOnehundredandthirtyfour,
Mh,
Udplite,
Mpls,
ProtoOnehundredandthirtyeight,
ProtoOnehundredandthirtynine,
ProtoOnehundredandfourty,
ProtoOnehundredandfourtyone,
ProtoOnehundredandfourtytwo,
Ethernet,
ProtoOnehundredandfourtyfour,
ProtoOnehundredandfourtyfive,
ProtoOnehundredandfourtysix,
ProtoOnehundredandfourtyseven,
ProtoOnehundredandfourtyeight,
ProtoOnehundredandfourtynine,
ProtoOnehundredandfifty,
ProtoOnehundredandfiftyone,
ProtoOnehundredandfiftytwo,
ProtoOnehundredandfiftythree,
ProtoOnehundredandfiftyfour,
ProtoOnehundredandfiftyfive,
ProtoOnehundredandfiftysix,
ProtoOnehundredandfiftyseven,
ProtoOnehundredandfiftyeight,
ProtoOnehundredandfiftynine,
ProtoOnehundredandsixty,
ProtoOnehundredandsixtyone,
ProtoOnehundredandsixtytwo,
ProtoOnehundredandsixtythree,
ProtoOnehundredandsixtyfour,
ProtoOnehundredandsixtyfive,
ProtoOnehundredandsixtysix,
ProtoOnehundredandsixtyseven,
ProtoOnehundredandsixtyeight,
ProtoOnehundredandsixtynine,
ProtoOnehundredandseventy,
ProtoOnehundredandseventyone,
ProtoOnehundredandseventytwo,
ProtoOnehundredandseventythree,
ProtoOnehundredandseventyfour,
ProtoOnehundredandseventyfive,
ProtoOnehundredandseventysix,
ProtoOnehundredandseventyseven,
ProtoOnehundredandseventyeight,
ProtoOnehundredandseventynine,
ProtoOnehundredandeighty,
ProtoOnehundredandeightyone,
ProtoOnehundredandeightytwo,
ProtoOnehundredandeightythree,
ProtoOnehundredandeightyfour,
ProtoOnehundredandeightyfive,
ProtoOnehundredandeightysix,
ProtoOnehundredandeightyseven,
ProtoOnehundredandeightyeight,
ProtoOnehundredandeightynine,
ProtoOnehundredandninety,
ProtoOnehundredandninetyone,
ProtoOnehundredandninetytwo,
ProtoOnehundredandninetythree,
ProtoOnehundredandninetyfour,
ProtoOnehundredandninetyfive,
ProtoOnehundredandninetysix,
ProtoOnehundredandninetyseven,
ProtoOnehundredandninetyeight,
ProtoOnehundredandninetynine,
ProtoTwohundred,
ProtoTwohundredandone,
ProtoTwohundredandtwo,
ProtoTwohundredandthree,
ProtoTwohundredandfour,
ProtoTwohundredandfive,
ProtoTwohundredandsix,
ProtoTwohundredandseven,
ProtoTwohundredandeight,
ProtoTwohundredandnine,
ProtoTwohundredandten,
ProtoTwohundredandeleven,
ProtoTwohundredandtwelve,
ProtoTwohundredandthirteen,
ProtoTwohundredandfourteen,
ProtoTwohundredandfifteen,
ProtoTwohundredandsixteen,
ProtoTwohundredandseventeen,
ProtoTwohundredandeighteen,
ProtoTwohundredandnineteen,
ProtoTwohundredandtwenty,
ProtoTwohundredandtwentyone,
ProtoTwohundredandtwentytwo,
ProtoTwohundredandtwentythree,
ProtoTwohundredandtwentyfour,
ProtoTwohundredandtwentyfive,
ProtoTwohundredandtwentysix,
ProtoTwohundredandtwentyseven,
ProtoTwohundredandtwentyeight,
ProtoTwohundredandtwentynine,
ProtoTwohundredandthirty,
ProtoTwohundredandthirtyone,
ProtoTwohundredandthirtytwo,
ProtoTwohundredandthirtythree,
ProtoTwohundredandthirtyfour,
ProtoTwohundredandthirtyfive,
ProtoTwohundredandthirtysix,
ProtoTwohundredandthirtyseven,
ProtoTwohundredandthirtyeight,
ProtoTwohundredandthirtynine,
ProtoTwohundredandfourty,
ProtoTwohundredandfourtyone,
ProtoTwohundredandfourtytwo,
ProtoTwohundredandfourtythree,
ProtoTwohundredandfourtyfour,
ProtoTwohundredandfourtyfive,
ProtoTwohundredandfourtysix,
ProtoTwohundredandfourtyseven,
ProtoTwohundredandfourtyeight,
ProtoTwohundredandfourtynine,
ProtoTwohundredandfifty,
ProtoTwohundredandfiftyone,
ProtoTwohundredandfiftytwo,
ProtoTwohundredandfiftythree,
ProtoTwohundredandfiftyfour,
ProtoRaw,
ProtoTwohundredandfiftysix,
ProtoTwohundredandfiftyseven,
ProtoTwohundredandfiftyeight,
ProtoTwohundredandfiftynine,
ProtoTwohundredandsixty,
ProtoTwohundredandsixtyone,
Mptcp,
Max,
}
Variants§
Ip
Icmp
Igmp
ProtoThree
Ipip
ProtoFive
Tcp
ProtoSeven
Egp
ProtoNine
ProtoTen
ProtoEleven
Pup
ProtoThirteen
ProtoFourteen
ProtoFifteen
ProtoSixteen
Udp
ProtoEighteen
ProtoNineteen
ProtoTwenty
ProtoTwentyone
Idp
ProtoTwentythree
ProtoTwentyfour
ProtoTwentyfive
ProtoTwentysix
ProtoTwentyseven
ProtoTwentyeight
ProtoTp
ProtoThirty
ProtoThirtyone
ProtoThirtytwo
Dccp
ProtoThirtyfour
ProtoThirtyfive
ProtoThirtysix
ProtoThirtyseven
ProtoThirtyeight
ProtoThirtynine
ProtoFourty
Ipv6
ProtoFourtytwo
Routing
Fragment
ProtoFourtyfive
Rsvp
Gre
ProtoFourtyeight
ProtoFourtynine
Esp
Ah
ProtoFiftytwo
ProtoFiftythree
ProtoFiftyfour
ProtoFiftyfive
ProtoFiftysix
ProtoFiftyseven
Icmpv6
None
Dstopts
ProtoSixtyone
ProtoSixtytwo
ProtoSixtythree
ProtoSixtyfour
ProtoSixtyfive
ProtoSixtysix
ProtoSixtyseven
ProtoSixtyeight
ProtoSixtynine
ProtoSeventy
ProtoSeventyone
ProtoSeventytwo
ProtoSeventythree
ProtoSeventyfour
ProtoSeventyfive
ProtoSeventysix
ProtoSeventyseven
ProtoSeventyeight
ProtoSeventynine
ProtoEighty
ProtoEightyone
ProtoEightytwo
ProtoEightythree
ProtoEightyfour
ProtoEightyfive
ProtoEightysix
ProtoEightyseven
ProtoEightyeight
ProtoEightynine
ProtoNinety
ProtoNinetyone
Mtp
ProtoNinetythree
Beetph
ProtoNinetyfive
ProtoNinetysix
ProtoNineetyseven
Encap
ProtoNinetynine
ProtoOnehundred
ProtoOnehundredandone
ProtoOnehundredandtwo
Pim
ProtoOnehundredandfour
ProtoOnehundredandfive
ProtoOnehundredandsix
ProtoOnehundredandseven
Comp
ProtoOnehundredandnine
ProtoOnehundredandten
ProtoOnehundredandeleven
ProtoOnehundredandtwelve
ProtoOnehundredandthirteen
ProtoOnehundredandfourteen
ProtoOnehundredandfifteen
ProtoOnehundredandsixteen
ProtoOnehundredandseventeen
ProtoOnehundredandeighteen
ProtoOnehundredandnineteen
ProtoOnehundredandtwenty
ProtoOnehundredandtwentyone
ProtoOnehundredandtwentytwo
ProtoOnehundredandtwentythree
ProtoOnehundredandtwentyfour
ProtoOnehundredandtwentyfive
ProtoOnehundredandtwentysix
ProtoOnehundredandtwentyseven
ProtoOnehundredandtwentyeight
ProtoOnehundredandtwentynine
ProtoOnehundredandthirty
ProtoOnehundredandthirtyone
Sctp
ProtoOnehundredandthirtythree
ProtoOnehundredandthirtyfour
Mh
Udplite
Mpls
ProtoOnehundredandthirtyeight
ProtoOnehundredandthirtynine
ProtoOnehundredandfourty
ProtoOnehundredandfourtyone
ProtoOnehundredandfourtytwo
Ethernet
ProtoOnehundredandfourtyfour
ProtoOnehundredandfourtyfive
ProtoOnehundredandfourtysix
ProtoOnehundredandfourtyseven
ProtoOnehundredandfourtyeight
ProtoOnehundredandfourtynine
ProtoOnehundredandfifty
ProtoOnehundredandfiftyone
ProtoOnehundredandfiftytwo
ProtoOnehundredandfiftythree
ProtoOnehundredandfiftyfour
ProtoOnehundredandfiftyfive
ProtoOnehundredandfiftysix
ProtoOnehundredandfiftyseven
ProtoOnehundredandfiftyeight
ProtoOnehundredandfiftynine
ProtoOnehundredandsixty
ProtoOnehundredandsixtyone
ProtoOnehundredandsixtytwo
ProtoOnehundredandsixtythree
ProtoOnehundredandsixtyfour
ProtoOnehundredandsixtyfive
ProtoOnehundredandsixtysix
ProtoOnehundredandsixtyseven
ProtoOnehundredandsixtyeight
ProtoOnehundredandsixtynine
ProtoOnehundredandseventy
ProtoOnehundredandseventyone
ProtoOnehundredandseventytwo
ProtoOnehundredandseventythree
ProtoOnehundredandseventyfour
ProtoOnehundredandseventyfive
ProtoOnehundredandseventysix
ProtoOnehundredandseventyseven
ProtoOnehundredandseventyeight
ProtoOnehundredandseventynine
ProtoOnehundredandeighty
ProtoOnehundredandeightyone
ProtoOnehundredandeightytwo
ProtoOnehundredandeightythree
ProtoOnehundredandeightyfour
ProtoOnehundredandeightyfive
ProtoOnehundredandeightysix
ProtoOnehundredandeightyseven
ProtoOnehundredandeightyeight
ProtoOnehundredandeightynine
ProtoOnehundredandninety
ProtoOnehundredandninetyone
ProtoOnehundredandninetytwo
ProtoOnehundredandninetythree
ProtoOnehundredandninetyfour
ProtoOnehundredandninetyfive
ProtoOnehundredandninetysix
ProtoOnehundredandninetyseven
ProtoOnehundredandninetyeight
ProtoOnehundredandninetynine
ProtoTwohundred
ProtoTwohundredandone
ProtoTwohundredandtwo
ProtoTwohundredandthree
ProtoTwohundredandfour
ProtoTwohundredandfive
ProtoTwohundredandsix
ProtoTwohundredandseven
ProtoTwohundredandeight
ProtoTwohundredandnine
ProtoTwohundredandten
ProtoTwohundredandeleven
ProtoTwohundredandtwelve
ProtoTwohundredandthirteen
ProtoTwohundredandfourteen
ProtoTwohundredandfifteen
ProtoTwohundredandsixteen
ProtoTwohundredandseventeen
ProtoTwohundredandeighteen
ProtoTwohundredandnineteen
ProtoTwohundredandtwenty
ProtoTwohundredandtwentyone
ProtoTwohundredandtwentytwo
ProtoTwohundredandtwentythree
ProtoTwohundredandtwentyfour
ProtoTwohundredandtwentyfive
ProtoTwohundredandtwentysix
ProtoTwohundredandtwentyseven
ProtoTwohundredandtwentyeight
ProtoTwohundredandtwentynine
ProtoTwohundredandthirty
ProtoTwohundredandthirtyone
ProtoTwohundredandthirtytwo
ProtoTwohundredandthirtythree
ProtoTwohundredandthirtyfour
ProtoTwohundredandthirtyfive
ProtoTwohundredandthirtysix
ProtoTwohundredandthirtyseven
ProtoTwohundredandthirtyeight
ProtoTwohundredandthirtynine
ProtoTwohundredandfourty
ProtoTwohundredandfourtyone
ProtoTwohundredandfourtytwo
ProtoTwohundredandfourtythree
ProtoTwohundredandfourtyfour
ProtoTwohundredandfourtyfive
ProtoTwohundredandfourtysix
ProtoTwohundredandfourtyseven
ProtoTwohundredandfourtyeight
ProtoTwohundredandfourtynine
ProtoTwohundredandfifty
ProtoTwohundredandfiftyone
ProtoTwohundredandfiftytwo
ProtoTwohundredandfiftythree
ProtoTwohundredandfiftyfour
ProtoRaw
ProtoTwohundredandfiftysix
ProtoTwohundredandfiftyseven
ProtoTwohundredandfiftyeight
ProtoTwohundredandfiftynine
ProtoTwohundredandsixty
ProtoTwohundredandsixtyone
Mptcp
Max
Trait Implementations§
source§impl FromToNativeWasmType for SockProto
impl FromToNativeWasmType for SockProto
source§fn to_native(self) -> <SockProto as FromToNativeWasmType>::Native
fn to_native(self) -> <SockProto as FromToNativeWasmType>::Native
Convert self to
Self::Native
. Read moresource§fn from_native(n: <SockProto as FromToNativeWasmType>::Native) -> SockProto
fn from_native(n: <SockProto as FromToNativeWasmType>::Native) -> SockProto
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<SockProto> for SockProto
impl PartialEq<SockProto> for SockProto
source§impl ValueType for SockProto
impl ValueType for SockProto
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 SockProto
impl Eq for SockProto
impl StructuralEq for SockProto
impl StructuralPartialEq for SockProto
Auto Trait Implementations§
impl RefUnwindSafe for SockProto
impl Send for SockProto
impl Sync for SockProto
impl Unpin for SockProto
impl UnwindSafe for SockProto
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
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>
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.
source§impl<T> Upcastable for Twhere
T: Any + Debug + 'static,
impl<T> Upcastable for Twhere T: Any + Debug + 'static,
§impl<T> Upcastable for Twhere
T: Any + Send + Sync + 'static,
impl<T> Upcastable for Twhere T: Any + Send + Sync + 'static,
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§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§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.