pub struct ModemNal;
Expand description
Modem struct implementing [embedded-nal-async
] traits.
Only available with feature = "embedded-nal-async"
.
NOTE: Reverse DNS lookups are not supported.
The get_host_by_address()
function will always report an error.
Trait Implementations§
Source§impl Dns for ModemNal
impl Dns for ModemNal
Source§impl TcpConnect for ModemNal
impl TcpConnect for ModemNal
Source§type Connection<'a> = TcpStream
type Connection<'a> = TcpStream
Type holding state of a TCP connection. Should close the connection when dropped.
Source§async fn connect<'a>(
&'a self,
remote: SocketAddr,
) -> Result<Self::Connection<'a>, Self::Error>
async fn connect<'a>( &'a self, remote: SocketAddr, ) -> Result<Self::Connection<'a>, Self::Error>
Connect to the given remote host and port. Read more
impl Copy for ModemNal
Auto Trait Implementations§
impl Freeze for ModemNal
impl RefUnwindSafe for ModemNal
impl Send for ModemNal
impl Sync for ModemNal
impl Unpin for ModemNal
impl UnwindSafe for ModemNal
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