pub struct SourceQueue<T> { /* private fields */ }Implementations§
Source§impl<T: Send + 'static> SourceQueue<T>
impl<T: Send + 'static> SourceQueue<T>
pub fn watch_completion(self) -> StreamCompletion<NotUsed> ⓘ
pub fn offer(&self, elem: T) -> StreamResult<QueueOfferResult>
pub fn complete(&self)
pub fn fail(&self, error: StreamError)
Trait Implementations§
Source§impl<T> Clone for SourceQueue<T>
impl<T> Clone for SourceQueue<T>
Source§impl<T> Drop for SourceQueue<T>
impl<T> Drop for SourceQueue<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for SourceQueue<T>
impl<T> !UnwindSafe for SourceQueue<T>
impl<T> Freeze for SourceQueue<T>
impl<T> Send for SourceQueue<T>where
T: Send,
impl<T> Sync for SourceQueue<T>where
T: Send,
impl<T> Unpin for SourceQueue<T>
impl<T> UnsafeUnpin for SourceQueue<T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage