pub enum Sharing {
Transient,
Singleton,
Scoped,
}Expand description
How a binding shares what it builds.
Variants§
Trait Implementations§
impl Copy for Sharing
impl Eq for Sharing
impl StructuralPartialEq for Sharing
Auto Trait Implementations§
impl Forget for Sharing
impl Freeze for Sharing
impl Move for Sharing
impl RefUnwindSafe for Sharing
impl Send for Sharing
impl Sync for Sharing
impl Unpin for Sharing
impl UnsafeUnpin for Sharing
impl UnwindSafe for Sharing
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