pub trait UdpBind {
type Error: Error;
type Socket<'a>: UdpReceive<Error = Self::Error, Error = Self::Error, Error = Self::Error, Error = Self::Error, Error = Self::Error, Error = Self::Error> + UdpSend + UdpSplitMulticast + MulticastV4 + MulticastV6 + Readable
where Self: 'a;
// Required method
async fn bind(
&self,
local: SocketAddr,
) -> Result<Self::Socket<'_>, Self::Error>;
}Expand description
Re-export the edge-nal crate
This is a factory trait for binding UDP sockets
Required Associated Types§
Sourcetype Socket<'a>: UdpReceive<Error = Self::Error, Error = Self::Error, Error = Self::Error, Error = Self::Error, Error = Self::Error, Error = Self::Error> + UdpSend + UdpSplitMulticast + MulticastV4 + MulticastV6 + Readable
where
Self: 'a
type Socket<'a>: UdpReceive<Error = Self::Error, Error = Self::Error, Error = Self::Error, Error = Self::Error, Error = Self::Error, Error = Self::Error> + UdpSend + UdpSplitMulticast + MulticastV4 + MulticastV6 + Readable where Self: 'a
The socket type returned by the stack
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".