pub struct DemuxEnum<Outputs> { /* private fields */ }Available on crate feature
dfir_macro only.Expand description
Special push operator for the demux_enum operator.
Implementations§
Trait Implementations§
Source§impl<Outputs, Item, Meta: Copy> Push<Item, Meta> for DemuxEnum<Outputs>where
Item: DemuxEnumPush<Outputs, Meta>,
impl<Outputs, Item, Meta: Copy> Push<Item, Meta> for DemuxEnum<Outputs>where
Item: DemuxEnumPush<Outputs, Meta>,
Source§type Ctx<'ctx> = <Item as DemuxEnumPush<Outputs, Meta>>::Ctx<'ctx>
type Ctx<'ctx> = <Item as DemuxEnumPush<Outputs, Meta>>::Ctx<'ctx>
The context type required to push into this pipeline.
Source§type CanPend = <Item as DemuxEnumPush<Outputs, Meta>>::CanPend
type CanPend = <Item as DemuxEnumPush<Outputs, Meta>>::CanPend
Whether this push can return [
PushStep::Pending].Source§fn poll_ready(
self: Pin<&mut Self>,
ctx: &mut Self::Ctx<'_>,
) -> PushStep<Self::CanPend>
fn poll_ready( self: Pin<&mut Self>, ctx: &mut Self::Ctx<'_>, ) -> PushStep<Self::CanPend>
Check if this push is ready to accept an item.
Source§fn start_send(self: Pin<&mut Self>, item: Item, meta: Meta)
fn start_send(self: Pin<&mut Self>, item: Item, meta: Meta)
Send an item into this push pipeline. Read more
Source§fn poll_flush(
self: Pin<&mut Self>,
ctx: &mut Self::Ctx<'_>,
) -> PushStep<Self::CanPend>
fn poll_flush( self: Pin<&mut Self>, ctx: &mut Self::Ctx<'_>, ) -> PushStep<Self::CanPend>
Flushes any buffered items in this push pipeline.
impl<'__pin, Outputs> Unpin for DemuxEnum<Outputs>where
PinnedFieldsOf<__Origin<'__pin, Outputs>>: Unpin,
Auto Trait Implementations§
impl<Outputs> Freeze for DemuxEnum<Outputs>where
Outputs: Freeze,
impl<Outputs> RefUnwindSafe for DemuxEnum<Outputs>where
Outputs: RefUnwindSafe,
impl<Outputs> Send for DemuxEnum<Outputs>where
Outputs: Send,
impl<Outputs> Sync for DemuxEnum<Outputs>where
Outputs: Sync,
impl<Outputs> UnsafeUnpin for DemuxEnum<Outputs>where
Outputs: UnsafeUnpin,
impl<Outputs> UnwindSafe for DemuxEnum<Outputs>where
Outputs: 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> ToSinkBuild for T
impl<T> ToSinkBuild for T
§fn iter_to_sink_build(self) -> SendIterBuild<Self>
fn iter_to_sink_build(self) -> SendIterBuild<Self>
§fn stream_to_sink_build(self) -> SendStreamBuild<Self>where
Self: Sized + Stream,
fn stream_to_sink_build(self) -> SendStreamBuild<Self>where
Self: Sized + Stream,
Starts a [
SinkBuild] adaptor chain to send all items from self as a [Stream].