Struct maitake_sync::spin::once::TryInitError
source · pub struct TryInitError<T> { /* private fields */ }
Expand description
Errors returned by InitOnce::try_init
.
This contains the value that the caller was attempting to use to initialize the cell.
Implementations§
source§impl<T> TryInitError<T>
impl<T> TryInitError<T>
sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Returns the value that the caller attempted to initialize the cell with
Trait Implementations§
source§impl<T> Debug for TryInitError<T>
impl<T> Debug for TryInitError<T>
source§impl<T> Display for TryInitError<T>
impl<T> Display for TryInitError<T>
source§impl<T> Error for TryInitError<T>
Available on crate feature core-error
only.
impl<T> Error for TryInitError<T>
Available on crate feature
core-error
only.1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<T> RefUnwindSafe for TryInitError<T>where
T: RefUnwindSafe,
impl<T> Send for TryInitError<T>where
T: Send,
impl<T> Sync for TryInitError<T>where
T: Sync,
impl<T> Unpin for TryInitError<T>where
T: Unpin,
impl<T> UnwindSafe for TryInitError<T>where
T: UnwindSafe,
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