Struct ScopeLease
pub struct ScopeLease { /* private fields */ }Expand description
A detached value lease. It never installs a codec or attests a native call root. Its lifetime is independent of the active resource scopes.
Implementations§
§impl ScopeLease
impl ScopeLease
pub fn new() -> ScopeLease
pub fn token(&self) -> ScopeToken
Trait Implementations§
§impl Default for ScopeLease
impl Default for ScopeLease
§fn default() -> ScopeLease
fn default() -> ScopeLease
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Send for ScopeLease
impl !Sync for ScopeLease
impl Freeze for ScopeLease
impl RefUnwindSafe for ScopeLease
impl Unpin for ScopeLease
impl UnsafeUnpin for ScopeLease
impl UnwindSafe for ScopeLease
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