Enum kitsune_p2p_types::AutoStreamSelect [−][src]
pub enum AutoStreamSelect<LeftType, RightType> {
Left(Option<LeftType>),
Right(Option<RightType>),
}
Expand description
Item Type for auto_stream_select function.
Variants
Left(Option<LeftType>)
Tuple Fields
0: Option<LeftType>
The left-hand stream output.
Right(Option<RightType>)
Tuple Fields
0: Option<RightType>
The right-hand stream output.
Trait Implementations
Auto Trait Implementations
impl<LeftType, RightType> RefUnwindSafe for AutoStreamSelect<LeftType, RightType> where
LeftType: RefUnwindSafe,
RightType: RefUnwindSafe,
impl<LeftType, RightType> Send for AutoStreamSelect<LeftType, RightType> where
LeftType: Send,
RightType: Send,
impl<LeftType, RightType> Sync for AutoStreamSelect<LeftType, RightType> where
LeftType: Sync,
RightType: Sync,
impl<LeftType, RightType> Unpin for AutoStreamSelect<LeftType, RightType> where
LeftType: Unpin,
RightType: Unpin,
impl<LeftType, RightType> UnwindSafe for AutoStreamSelect<LeftType, RightType> where
LeftType: UnwindSafe,
RightType: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more