pub struct SharedInvocationIdGenerator(/* private fields */);
Expand description
Dynamic dispatch implementation of InvocationIdGenerator
Implementations§
Sourcepub fn new(gen: impl InvocationIdGenerator + 'static) -> Self
pub fn new(gen: impl InvocationIdGenerator + 'static) -> Self
Creates a new SharedInvocationIdGenerator
.
Trait Implementations§
Source§fn clone(&self) -> SharedInvocationIdGenerator
fn clone(&self) -> SharedInvocationIdGenerator
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§fn generate(&self) -> Result<Option<InvocationId>, BoxError>
fn generate(&self) -> Result<Option<InvocationId>, BoxError>
Call this function to receive a new
InvocationId
or an error explaining why one couldn’t
be provided.Source§type Storer = StoreReplace<SharedInvocationIdGenerator>
type Storer = StoreReplace<SharedInvocationIdGenerator>
Specify how an item is stored in the config bag, e.g.
StoreReplace
and StoreAppend
Auto Trait Implementations§
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
Creates a shared type from an unshared type.