Enum single_use_seals::SealMediumError [−][src]
pub enum SealMediumError<M: Error> { MediumAccessError(M), PublicationIdNotSupported, }
Expand description
Error returned by SealMedium
and [AsyncSealMedium
] functions related
to work with publication id (SealMedium::PublicationId
). Required since
not all implementation of [SealMedia
] may define publication identifier,
and the traits provide default implementation for these functions always
returning [SealMediumError::OperationNotSupported
]. If the implementation
would like to provide custom implementation, it may embed standard error
related to SealMedium
operations within
SealMediumError::MediumAccessError
case; the type of MediumAccessError
is defined through generic argument to SealMediumError
.
Variants
Expand description
Can’t access the publication medium
Expand description
Publication id is not supported
Trait Implementations
impl<M: Clone + Error> Clone for SealMediumError<M>
[src]
impl<M: Clone + Error> Clone for SealMediumError<M>
[src]fn clone(&self) -> SealMediumError<M>
[src]
fn clone(&self) -> SealMediumError<M>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<M: Debug + Error> Debug for SealMediumError<M>
[src]
impl<M: Debug + Error> Debug for SealMediumError<M>
[src]impl<M: Error> Display for SealMediumError<M>
[src]
impl<M: Error> Display for SealMediumError<M>
[src]impl<M: Error> Error for SealMediumError<M>
[src]
impl<M: Error> Error for SealMediumError<M>
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl<M: Error> From<M> for SealMediumError<M>
[src]
impl<M: Error> From<M> for SealMediumError<M>
[src]impl<M: Copy + Error> Copy for SealMediumError<M>
[src]
Auto Trait Implementations
impl<M> RefUnwindSafe for SealMediumError<M> where
M: RefUnwindSafe,
M: RefUnwindSafe,
impl<M> Send for SealMediumError<M> where
M: Send,
M: Send,
impl<M> Sync for SealMediumError<M> where
M: Sync,
M: Sync,
impl<M> Unpin for SealMediumError<M> where
M: Unpin,
M: Unpin,
impl<M> UnwindSafe for SealMediumError<M> where
M: UnwindSafe,
M: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more