Struct buildsrs_storage::Temporary
source · pub struct Temporary<T> {
pub value: T,
pub cleanup: Cleanup,
}
Expand description
Temporary value with associated cleanup method.
Fields§
§value: T
Instance.
cleanup: Cleanup
Future used to clean up the resources.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Temporary<T>
impl<T> !Send for Temporary<T>
impl<T> !Sync for Temporary<T>
impl<T> Unpin for Temporary<T>where
T: Unpin,
impl<T> !UnwindSafe for Temporary<T>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.