pub struct PayloadError<E> { /* private fields */ }
Expand description
An payload with an error
Implementations§
Source§impl<E> PayloadError<E>
impl<E> PayloadError<E>
Sourcepub fn new<E2>(error: E2) -> PayloadError<E>where
E2: Into<E>,
pub fn new<E2>(error: E2) -> PayloadError<E>where
E2: Into<E>,
Create a new payloaded error.
Sourcepub fn with_backtrace<E2>(kind: E2, bt: Backtrace) -> PayloadError<E>where
E2: Into<E>,
pub fn with_backtrace<E2>(kind: E2, bt: Backtrace) -> PayloadError<E>where
E2: Into<E>,
create a new payload error with a backtrace
Sourcepub fn into<T>(self) -> PayloadError<T>where
E: Into<T>,
pub fn into<T>(self) -> PayloadError<T>where
E: Into<T>,
Convert the error type
Sourcepub fn into_inner(self) -> E
pub fn into_inner(self) -> E
Unwraps the payloaded error
Trait Implementations§
Source§impl<E> AsRef<E> for PayloadError<E>
impl<E> AsRef<E> for PayloadError<E>
Source§impl<E> Debug for PayloadError<E>where
E: Debug,
impl<E> Debug for PayloadError<E>where
E: Debug,
Source§impl<E> Display for PayloadError<E>where
E: Display,
impl<E> Display for PayloadError<E>where
E: Display,
Source§impl<E> Error for PayloadError<E>where
E: Error,
impl<E> Error for PayloadError<E>where
E: Error,
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()
Source§impl From<BuildError> for PayloadError<BuildException>
impl From<BuildError> for PayloadError<BuildException>
Source§fn from(e: BuildError) -> PayloadError<BuildException>
fn from(e: BuildError) -> PayloadError<BuildException>
Converts to this type from the input type.
Source§impl<E> From<E> for PayloadError<E>
impl<E> From<E> for PayloadError<E>
Source§fn from(e: E) -> PayloadError<E>
fn from(e: E) -> PayloadError<E>
Converts to this type from the input type.
Source§impl From<Error> for PayloadError<BuildException>
impl From<Error> for PayloadError<BuildException>
Source§fn from(e: Error) -> PayloadError<BuildException>
fn from(e: Error) -> PayloadError<BuildException>
Converts to this type from the input type.
Source§impl From<Error> for PayloadError<BuildException>
impl From<Error> for PayloadError<BuildException>
Source§fn from(e: Error) -> PayloadError<BuildException>
fn from(e: Error) -> PayloadError<BuildException>
Converts to this type from the input type.
Source§impl From<Error> for PayloadError<BuildException>
impl From<Error> for PayloadError<BuildException>
Source§fn from(e: Error) -> PayloadError<BuildException>
fn from(e: Error) -> PayloadError<BuildException>
Converts to this type from the input type.
Source§impl From<Error> for PayloadError<ProjectError>
impl From<Error> for PayloadError<ProjectError>
Source§fn from(e: Error) -> PayloadError<ProjectError>
fn from(e: Error) -> PayloadError<ProjectError>
Converts to this type from the input type.
Source§impl From<Error> for PayloadError<ProjectError>
impl From<Error> for PayloadError<ProjectError>
Source§fn from(e: Error) -> PayloadError<ProjectError>
fn from(e: Error) -> PayloadError<ProjectError>
Converts to this type from the input type.
Source§impl From<ExtensionError> for PayloadError<ProjectError>
impl From<ExtensionError> for PayloadError<ProjectError>
Source§fn from(e: ExtensionError) -> PayloadError<ProjectError>
fn from(e: ExtensionError) -> PayloadError<ProjectError>
Converts to this type from the input type.
Source§impl From<InvalidId> for PayloadError<BuildException>
impl From<InvalidId> for PayloadError<BuildException>
Source§fn from(e: InvalidId) -> PayloadError<BuildException>
fn from(e: InvalidId) -> PayloadError<BuildException>
Converts to this type from the input type.
Source§impl From<InvalidId> for PayloadError<ProjectError>
impl From<InvalidId> for PayloadError<ProjectError>
Source§fn from(e: InvalidId) -> PayloadError<ProjectError>
fn from(e: InvalidId) -> PayloadError<ProjectError>
Converts to this type from the input type.
Source§impl From<PayloadError<ProjectError>> for PayloadError<BuildException>
impl From<PayloadError<ProjectError>> for PayloadError<BuildException>
Source§fn from(e: PayloadError<ProjectError>) -> PayloadError<BuildException>
fn from(e: PayloadError<ProjectError>) -> PayloadError<BuildException>
Converts to this type from the input type.
Source§impl From<ProjectError> for PayloadError<BuildException>
impl From<ProjectError> for PayloadError<BuildException>
Source§fn from(e: ProjectError) -> PayloadError<BuildException>
fn from(e: ProjectError) -> PayloadError<BuildException>
Converts to this type from the input type.
Source§impl From<ProviderError> for PayloadError<BuildException>
impl From<ProviderError> for PayloadError<BuildException>
Source§fn from(e: ProviderError) -> PayloadError<BuildException>
fn from(e: ProviderError) -> PayloadError<BuildException>
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> !Freeze for PayloadError<E>
impl<E> RefUnwindSafe for PayloadError<E>where
E: RefUnwindSafe,
impl<E> Send for PayloadError<E>where
E: Send,
impl<E> Sync for PayloadError<E>where
E: Sync,
impl<E> Unpin for PayloadError<E>where
E: Unpin,
impl<E> UnwindSafe for PayloadError<E>where
E: 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
Source§impl<T> InstanceOf for T
impl<T> InstanceOf for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more