pub struct StdNetworkConnection<T: ToSocketAddrs> { /* private fields */ }Implementations§
Source§impl<T: ToSocketAddrs> StdNetworkConnection<T>
impl<T: ToSocketAddrs> StdNetworkConnection<T>
Trait Implementations§
Source§impl<T: ToSocketAddrs> ErrorType for StdNetworkConnection<T>
impl<T: ToSocketAddrs> ErrorType for StdNetworkConnection<T>
Source§impl<T: ToSocketAddrs> NetworkConnection for StdNetworkConnection<T>
impl<T: ToSocketAddrs> NetworkConnection for StdNetworkConnection<T>
Source§impl<T: ToSocketAddrs> Read for StdNetworkConnection<T>
impl<T: ToSocketAddrs> Read for StdNetworkConnection<T>
Source§async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
Read some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Source§async fn read_exact(
&mut self,
buf: &mut [u8],
) -> Result<(), ReadExactError<Self::Error>>
async fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::Error>>
Read the exact number of bytes required to fill
buf. Read moreSource§impl<T: ToSocketAddrs> TryRead for StdNetworkConnection<T>
impl<T: ToSocketAddrs> TryRead for StdNetworkConnection<T>
Source§impl<T: ToSocketAddrs> TryWrite for StdNetworkConnection<T>
impl<T: ToSocketAddrs> TryWrite for StdNetworkConnection<T>
Source§impl<T: ToSocketAddrs> Write for StdNetworkConnection<T>
impl<T: ToSocketAddrs> Write for StdNetworkConnection<T>
Source§async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
impl<T: ToSocketAddrs> Unpin for StdNetworkConnection<T>
Auto Trait Implementations§
impl<T> !Freeze for StdNetworkConnection<T>
impl<T> RefUnwindSafe for StdNetworkConnection<T>where
T: RefUnwindSafe,
impl<T> Send for StdNetworkConnection<T>where
T: Send,
impl<T> Sync for StdNetworkConnection<T>where
T: Sync,
impl<T> UnwindSafe for StdNetworkConnection<T>where
T: UnwindSafe,
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
Source§impl<C> NetwordSendReceive for Cwhere
C: NetworkConnection,
impl<C> NetwordSendReceive for Cwhere
C: NetworkConnection,
Source§async fn send<T>(&mut self, buf: &mut Buffer<T>) -> Result<usize, NetworkError>
async fn send<T>(&mut self, buf: &mut Buffer<T>) -> Result<usize, NetworkError>
Send data from the buffer to the network and block is the network is not ready