Shrinkage

shrinkage::BackendError

Shrinkage for Rust · rust · 0.3.0

pub struct BackendError(Box<dyn Error>)

A runtime-selected backend error with its original source preserved.

Inherent implementation

impl BackendError

as_error

pub fn as_error(&self) -> &(dyn Error + 'static)

Borrow the original error, including for downcasting.

new

pub fn new<E: Error + 'static>(source: E) -> Self

Erase a concrete backend error while retaining its type and source chain.

Implementation of Debug

impl Debug for BackendError

fmt

fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result

Implementation of Display

impl Display for BackendError

fmt

fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result

Implementation of Error

impl Error for BackendError

source

fn source(&self) -> Option<&(dyn Error + 'static)>

Implementation of Freeze

impl Freeze for BackendError

Implementation of RefUnwindSafe

impl !RefUnwindSafe for BackendError

Implementation of Send

impl !Send for BackendError

Implementation of Sync

impl !Sync for BackendError

Implementation of Unpin

impl Unpin for BackendError

Implementation of UnsafeUnpin

impl UnsafeUnpin for BackendError

Implementation of UnwindSafe

impl !UnwindSafe for BackendError

Implementation of Any

impl<T> Any for T where T: 'static + ?Sized

Implementation of Borrow

impl<T> Borrow<T> for T where T: ?Sized

Implementation of BorrowMut

impl<T> BorrowMut<T> for T where T: ?Sized

Implementation of ByRef

impl<T> ByRef<T> for T

Implementation of CastableFrom

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT where ST: ?Sized, DT: ?Sized

Implementation of CastableFrom

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT where ST: ?Sized, DT: ?Sized

Implementation of From

impl<T> From<T> for T

Implementation of Imply

impl<T, U> Imply<T> for U where T: ?Sized, U: ?Sized

Implementation of Into

impl<T, U> Into<U> for T where U: From<T>

Implementation of IntoEither

impl<T> IntoEither for T

Implementation of Pointable

impl<T> Pointable for T

Implementation of Read

impl<T> Read<Exclusive, BecauseExclusive> for T where T: ?Sized

Implementation of Same

impl<T> Same for T

Implementation of SupersetOf

impl<SS, SP> SupersetOf<SS> for SP where SS: SubsetOf<SP>

Implementation of ToString

impl<T> ToString for T where T: Display + ?Sized

Implementation of TryFrom

impl<T, U> TryFrom<U> for T where U: Into<T>

Implementation of TryInto

impl<T, U> TryInto<U> for T where U: TryFrom<T>