pub struct WeakService(/* private fields */);Expand description
A service, held weakly: what a child keeps of the service it is mounted in, so it never keeps that service alive. Cheap to clone.
Implementations§
Source§impl WeakService
impl WeakService
Sourcepub fn upgrade(&self) -> Option<DynamicHub>
pub fn upgrade(&self) -> Option<DynamicHub>
The service, while it lives.
Trait Implementations§
Source§impl Clone for WeakService
impl Clone for WeakService
Auto Trait Implementations§
impl !RefUnwindSafe for WeakService
impl !UnwindSafe for WeakService
impl Forget for WeakService
impl Freeze for WeakService
impl Send for WeakService
impl Sync for WeakService
impl Unpin for WeakService
impl UnsafeUnpin for WeakService
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