pub struct TryCallOnceError(/* private fields */);
Expand description
Error returned by Once::try_call_once
if the inner function was called from
within itself.
Trait Implementations§
Source§impl Clone for TryCallOnceError
impl Clone for TryCallOnceError
Source§fn clone(&self) -> TryCallOnceError
fn clone(&self) -> TryCallOnceError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TryCallOnceError
impl Debug for TryCallOnceError
Source§impl Display for TryCallOnceError
impl Display for TryCallOnceError
Source§impl Error for TryCallOnceError
impl Error for TryCallOnceError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 Freeze for TryCallOnceError
impl RefUnwindSafe for TryCallOnceError
impl Send for TryCallOnceError
impl Sync for TryCallOnceError
impl Unpin for TryCallOnceError
impl UnwindSafe for TryCallOnceError
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