Struct nrf_modem::OwnedTcpWriteStream
source · 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.
Auto Trait Implementations§
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