pub struct SharedInvocationIdGenerator(_);
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.§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§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more