pub struct Open<T: 'static> { /* private fields */ }Expand description
Implementations§
Source§impl<T> Open<T>
impl<T> Open<T>
Sourcepub fn signal(&self) -> &'static T
pub fn signal(&self) -> &'static T
The wrapped signal with the 'static lifetime Deref cannot lend, for
APIs taking &'static self such as Leased::lease.
It outlives the guard, so keeping it past the drop escapes the count.
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Open<T>
impl<T> !UnwindSafe for Open<T>
impl<T> Freeze for Open<T>
impl<T> Send for Open<T>
impl<T> Sync for Open<T>
impl<T> Unpin for Open<T>
impl<T> UnsafeUnpin for Open<T>where
&'static Backed<T>: UnsafeUnpin,
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