pub struct WriteHandoff { /* private fields */ }Implementations§
Source§impl WriteHandoff
impl WriteHandoff
pub fn spawn<W>(writer: W, config: WriteHandoffConfig) -> Self
pub fn try_write(&self, bytes: Bytes) -> Result<WriteTicket, WriteBackpressure>
pub fn try_write_fire_and_forget( &self, bytes: Bytes, ) -> Result<(), WriteBackpressure>
pub async fn write(&self, bytes: Bytes) -> Result<WriteTicket, WriteError>
pub async fn write_fire_and_forget( &self, bytes: Bytes, ) -> Result<(), WriteError>
pub fn pending_bytes(&self) -> usize
pub fn close(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WriteHandoff
impl RefUnwindSafe for WriteHandoff
impl Send for WriteHandoff
impl Sync for WriteHandoff
impl Unpin for WriteHandoff
impl UnsafeUnpin for WriteHandoff
impl UnwindSafe for WriteHandoff
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