pub struct OwnedTlsWriteStream { /* private fields */ }
Expand description
An owned write half of an encrypted TCP stream
Implementations§
Source§impl OwnedTlsWriteStream
impl OwnedTlsWriteStream
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 OwnedTlsWriteStream
impl ErrorType for OwnedTlsWriteStream
Source§impl Write for OwnedTlsWriteStream
impl Write for OwnedTlsWriteStream
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 OwnedTlsWriteStream
impl RefUnwindSafe for OwnedTlsWriteStream
impl Send for OwnedTlsWriteStream
impl Sync for OwnedTlsWriteStream
impl Unpin for OwnedTlsWriteStream
impl UnwindSafe for OwnedTlsWriteStream
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