Struct async_wasi::snapshots::common::net::WasiSocketState
source · pub struct WasiSocketState {Show 14 fields
pub sock_type: (AddressFamily, SocketType),
pub local_addr: Option<SocketAddr>,
pub peer_addr: Option<SocketAddr>,
pub bind_device: Vec<u8>,
pub backlog: u32,
pub shutdown: Option<Shutdown>,
pub nonblocking: bool,
pub so_reuseaddr: bool,
pub so_conn_state: ConnectState,
pub so_recv_buf_size: usize,
pub so_send_buf_size: usize,
pub so_recv_timeout: Option<Duration>,
pub so_send_timeout: Option<Duration>,
pub fs_rights: WASIRights,
}
Fields§
§sock_type: (AddressFamily, SocketType)
§local_addr: Option<SocketAddr>
§peer_addr: Option<SocketAddr>
§bind_device: Vec<u8>
§backlog: u32
§shutdown: Option<Shutdown>
§nonblocking: bool
§so_reuseaddr: bool
§so_conn_state: ConnectState
§so_recv_buf_size: usize
§so_send_buf_size: usize
§so_recv_timeout: Option<Duration>
§so_send_timeout: Option<Duration>
§fs_rights: WASIRights
Trait Implementations§
source§impl Clone for WasiSocketState
impl Clone for WasiSocketState
source§fn clone(&self) -> WasiSocketState
fn clone(&self) -> WasiSocketState
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 WasiSocketState
impl Debug for WasiSocketState
source§impl Default for WasiSocketState
impl Default for WasiSocketState
source§fn default() -> WasiSocketState
fn default() -> WasiSocketState
Returns the “default value” for a type. Read more
source§impl From<&SerialWasiSocketState> for WasiSocketState
impl From<&SerialWasiSocketState> for WasiSocketState
source§fn from(val: &SerialWasiSocketState) -> Self
fn from(val: &SerialWasiSocketState) -> Self
Converts to this type from the input type.
source§impl From<&WasiSocketState> for SerialWasiSocketState
impl From<&WasiSocketState> for SerialWasiSocketState
source§fn from(state: &WasiSocketState) -> Self
fn from(state: &WasiSocketState) -> Self
Converts to this type from the input type.
source§impl From<SerialWasiSocketState> for WasiSocketState
impl From<SerialWasiSocketState> for WasiSocketState
source§fn from(val: SerialWasiSocketState) -> Self
fn from(val: SerialWasiSocketState) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for WasiSocketState
impl Send for WasiSocketState
impl Sync for WasiSocketState
impl Unpin for WasiSocketState
impl UnwindSafe for WasiSocketState
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