Struct remoc::chmux::ChunkSender
source ยท pub struct ChunkSender<'a> { /* private fields */ }
Expand description
Sends chunks of a message to the remote endpoint.
You must call finish to finalize the sending of the message. Drop the chunk sender to cancel the message.
Implementationsยง
sourceยงimpl<'a> ChunkSender<'a>
impl<'a> ChunkSender<'a>
sourcepub async fn send(self, chunk: Bytes) -> Result<ChunkSender<'a>, SendError>
pub async fn send(self, chunk: Bytes) -> Result<ChunkSender<'a>, SendError>
Sends a non-final chunk of a message.
The boundaries of chunks within a message may change during transmission, thus there is no guarantee that Receiver::recv_chunk will return the same chunks as sent.
Auto Trait Implementationsยง
impl<'a> Freeze for ChunkSender<'a>
impl<'a> !RefUnwindSafe for ChunkSender<'a>
impl<'a> Send for ChunkSender<'a>
impl<'a> Sync for ChunkSender<'a>
impl<'a> Unpin for ChunkSender<'a>
impl<'a> !UnwindSafe for ChunkSender<'a>
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