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