pub struct NowKey;Trait Implementations§
Source§impl DependencyKey for NowKey
impl DependencyKey for NowKey
type Value = NowDep
fn live() -> <NowKey as DependencyKey>::Value
Source§fn try_test() -> Result<<NowKey as DependencyKey>::Value, DependencyError>
fn try_test() -> Result<<NowKey as DependencyKey>::Value, DependencyError>
Fall back when no test double is registered for this key.
fn test() -> Self::Value
fn preview() -> Self::Value
fn register(values: &DependencyValues, value: Self::Value)
Auto Trait Implementations§
impl Freeze for NowKey
impl RefUnwindSafe for NowKey
impl Send for NowKey
impl Sync for NowKey
impl Unpin for NowKey
impl UnsafeUnpin for NowKey
impl UnwindSafe for NowKey
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