Struct kitsune_p2p_types::tx2::tx2_utils::LogicChanHandle [−][src]
pub struct LogicChanHandle<E: 'static + Send>(_);
Expand description
Handle to a logic_chan instance.
A clone of a LogicChanHandle is Eq
to its origin.
A clone of a LogicChanHandle will Hash
the same as its origin.
Implementations
Cause the logic_chan to emit an event.
pub fn capture_logic<L>(
&self,
l: L
) -> impl Future<Output = KitsuneResult<()>> + 'static + Send where
L: Future<Output = ()> + 'static + Send,
pub fn capture_logic<L>(
&self,
l: L
) -> impl Future<Output = KitsuneResult<()>> + 'static + Send where
L: Future<Output = ()> + 'static + Send,
Capture new logic into the logic_chan.
The passed future can capture other async objects such as streams,
that will be polled as a part of the main logic_chan stream,
without introducing any executor tasks.
Be careful calling capture_logic()
from within previously captured
logic. While there may be reason to do this, it can lead to
deadlock when approaching the capture_bound.
Trait Implementations
Auto Trait Implementations
impl<E> !RefUnwindSafe for LogicChanHandle<E>
impl<E> Send for LogicChanHandle<E>
impl<E> Sync for LogicChanHandle<E>
impl<E> Unpin for LogicChanHandle<E>
impl<E> !UnwindSafe for LogicChanHandle<E>
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
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