pub struct ContextIdFactory;Expand description
Creates and discovers Nest-style dependency-injection context identities.
Implementations§
Source§impl ContextIdFactory
impl ContextIdFactory
Sourcepub fn get_by_request(request: &BootRequest) -> ContextId
pub fn get_by_request(request: &BootRequest) -> ContextId
Return the context already attached to a request, or create a fresh one.
Trait Implementations§
Source§impl Clone for ContextIdFactory
impl Clone for ContextIdFactory
Source§fn clone(&self) -> ContextIdFactory
fn clone(&self) -> ContextIdFactory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContextIdFactory
Source§impl Debug for ContextIdFactory
impl Debug for ContextIdFactory
Source§impl Default for ContextIdFactory
impl Default for ContextIdFactory
Source§fn default() -> ContextIdFactory
fn default() -> ContextIdFactory
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContextIdFactory
impl RefUnwindSafe for ContextIdFactory
impl Send for ContextIdFactory
impl Sync for ContextIdFactory
impl Unpin for ContextIdFactory
impl UnsafeUnpin for ContextIdFactory
impl UnwindSafe for ContextIdFactory
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