Struct SetOnceError
pub struct SetOnceError<T>(pub T);
Available on crate feature
sync only.Error that can be returned from SetOnce::set.
This error means that the SetOnce was already initialized when set was called
Tuple Fields
0: TTrait Implementations
impl<T: Debug> Debug for SetOnceError<T>
impl<T> Display for SetOnceError<T>
impl<T: Eq> Eq for SetOnceError<T>
impl<T: Debug> Error for SetOnceError<T>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl<T: PartialEq> PartialEq for SetOnceError<T>
impl<T: PartialEq> StructuralPartialEq for SetOnceError<T>
Auto Trait Implementations
impl<T> Freeze for SetOnceError<T>where T: Freeze,
impl<T> RefUnwindSafe for SetOnceError<T>where T: RefUnwindSafe,
impl<T> Send for SetOnceError<T>where T: Send,
impl<T> Sync for SetOnceError<T>where T: Sync,
impl<T> Unpin for SetOnceError<T>where T: Unpin,
impl<T> UnsafeUnpin for SetOnceError<T>where T: UnsafeUnpin,
impl<T> UnwindSafe for SetOnceError<T>where T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for Twhere T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Instrument for T
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> ToString for T
impl<T> WithSubscriber for T
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
MIT License
Copyright © Tokio Contributors
https://docs.rs/tokio/1.53.1/tokio/sync/struct.SetOnceError.html