Struct kitsune_p2p_types::async_lazy::AsyncLazy [−][src]
Expand description
utility for lazy init-ing things note how new is not async so we can do it in an actor handler
Implementations
sync create a new lazy-init value
works best with Arc<>
types, but anything
'static + Clone + Send + Sync
will do.
Auto Trait Implementations
impl<O> !RefUnwindSafe for AsyncLazy<O>
impl<O> !UnwindSafe for AsyncLazy<O>
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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
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