pub struct Stack(/* private fields */);
Implementations§
Trait Implementations§
Source§impl Dns for Stack
impl Dns for Stack
Source§impl TcpConnect for Stack
impl TcpConnect for Stack
Source§type Connection<'a> = StdTcpConnection
where
Self: 'a
type Connection<'a> = StdTcpConnection where Self: 'a
Type holding state of a TCP connection. Should close the connection when dropped.
Source§async fn connect(
&self,
remote: SocketAddr,
) -> Result<Self::Connection<'_>, Self::Error>
async fn connect( &self, remote: SocketAddr, ) -> Result<Self::Connection<'_>, Self::Error>
Connect to the given remote host and port. Read more
Source§impl UdpStack for Stack
impl UdpStack for Stack
Source§type Connected = StdUdpSocket
type Connected = StdUdpSocket
Eventual socket return type of the [
.connect()
] methodSource§type UniquelyBound = StdUdpSocket
type UniquelyBound = StdUdpSocket
Eventual socket return type of the [
.bind_single()
] methodSource§type MultiplyBound = StdUdpSocket
type MultiplyBound = StdUdpSocket
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
Source§async fn connect(
&self,
remote: SocketAddr,
) -> Result<(SocketAddr, Self::Connected), Self::Error>
async fn connect( &self, remote: SocketAddr, ) -> Result<(SocketAddr, Self::Connected), Self::Error>
Create a socket that has a fixed remote address. Read more
Auto Trait Implementations§
impl Freeze for Stack
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