pub struct OwnedTcpWriteStream { /* private fields */ }
Expand description
An owned write half of a TCP stream
Implementations§
Source§impl OwnedTcpWriteStream
impl OwnedTcpWriteStream
Sourcepub async fn write(&self, buf: &[u8]) -> Result<(), Error>
pub async fn write(&self, buf: &[u8]) -> Result<(), Error>
Write the entire buffer to the stream
Sourcepub async fn write_with_cancellation(
&self,
buf: &[u8],
token: &CancellationToken,
) -> Result<(), Error>
pub async fn write_with_cancellation( &self, buf: &[u8], token: &CancellationToken, ) -> Result<(), Error>
Write the entire buffer to the stream
Sourcepub async fn deactivate(self) -> Result<(), Error>
pub async fn deactivate(self) -> Result<(), Error>
Deactivates the socket and the LTE link. A normal drop will do the same thing, but blocking.
Trait Implementations§
Source§impl ErrorType for OwnedTcpWriteStream
impl ErrorType for OwnedTcpWriteStream
Source§impl Write for OwnedTcpWriteStream
impl Write for OwnedTcpWriteStream
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
Auto Trait Implementations§
impl Freeze for OwnedTcpWriteStream
impl RefUnwindSafe for OwnedTcpWriteStream
impl Send for OwnedTcpWriteStream
impl Sync for OwnedTcpWriteStream
impl Unpin for OwnedTcpWriteStream
impl UnwindSafe for OwnedTcpWriteStream
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