Struct std_embedded_nal_async::Stack
source · pub struct Stack;
Expand description
The operating system’s network stack, implementing embedded_nal_async::UdpStack
.
The user may instantiate a stack using the Stack::default()
function.
The stack can be cloned, as it is not a resource that needs any synchronization. This is not made implicit as Copy, though (although there’s not technical reason not to). That is to alert users to the difficulties that’d arise when copying around a stack rather than using it through some mechanism of synchronization.
Trait Implementations§
source§impl Dns for Stack
impl Dns for Stack
source§impl TcpConnect for Stack
impl TcpConnect for Stack
§type Connection<'a> = TcpConnection
type Connection<'a> = TcpConnection
Type holding state of a TCP connection. Should close the connection when dropped.
source§impl UdpStack for Stack
impl UdpStack for Stack
§type UniquelyBound = UniquelyBoundSocket
type UniquelyBound = UniquelyBoundSocket
Eventual socket return type of the [
.bind_single()
] method§type MultiplyBound = MultiplyBoundSocket
type MultiplyBound = MultiplyBoundSocket
Eventual return type of the [
.bind_multiple()
] methodsource§async fn connect_from(
&self,
local: SocketAddr,
remote: SocketAddr
) -> Result<(SocketAddr, Self::Connected), Self::Error>
async fn connect_from( &self, local: SocketAddr, remote: SocketAddr ) -> Result<(SocketAddr, Self::Connected), Self::Error>
Create a socket that has a fixed remote address. Read more
source§async fn bind_single(
&self,
local: SocketAddr
) -> Result<(SocketAddr, Self::UniquelyBound), Self::Error>
async fn bind_single( &self, local: SocketAddr ) -> Result<(SocketAddr, Self::UniquelyBound), Self::Error>
Create a socket that has a fixed local address. Read more
source§async fn bind_multiple(
&self,
local: SocketAddr
) -> Result<Self::MultiplyBound, Self::Error>
async fn bind_multiple( &self, local: SocketAddr ) -> Result<Self::MultiplyBound, Self::Error>
Create a socket that has no single fixed local address. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Stack
impl Send for Stack
impl Sync for Stack
impl Unpin for Stack
impl UnwindSafe for Stack
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