pub struct RawFutureWriter<O: FutureOps> { /* private fields */ }Available on crate feature
async only.Expand description
Raw version of FutureWriter.
Implementations§
Source§impl<O: FutureOps> RawFutureWriter<O>
impl<O: FutureOps> RawFutureWriter<O>
Sourcepub fn write(self, value: O::Payload) -> RawFutureWrite<O> ⓘ
pub fn write(self, value: O::Payload) -> RawFutureWrite<O> ⓘ
Same as FutureWriter::write, but the raw version.
Sourcepub fn write_and_forget(self, value: O::Payload)where
O: 'static,
pub fn write_and_forget(self, value: O::Payload)where
O: 'static,
Writes value in the background.
This does not block and is not cancellable.
Trait Implementations§
Source§impl<O: FutureOps> Debug for RawFutureWriter<O>
impl<O: FutureOps> Debug for RawFutureWriter<O>
Auto Trait Implementations§
impl<O> Freeze for RawFutureWriter<O>where
O: Freeze,
impl<O> RefUnwindSafe for RawFutureWriter<O>where
O: RefUnwindSafe,
impl<O> Send for RawFutureWriter<O>where
O: Send,
impl<O> Sync for RawFutureWriter<O>where
O: Sync,
impl<O> Unpin for RawFutureWriter<O>where
O: Unpin,
impl<O> UnwindSafe for RawFutureWriter<O>where
O: UnwindSafe,
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