pub enum RepairError<E> {
Transport(E),
Decode(DecodeError),
}Expand description
What a repaired read can fail with.
Variants§
Transport(E)
The transport failed.
Decode(DecodeError)
The document, repaired, did not deserialize into the type asked for.
Implementations§
Source§impl<E: BmcError> RepairError<E>
impl<E: BmcError> RepairError<E>
Sourcepub fn from_transport(error: E) -> Self
pub fn from_transport(error: E) -> Self
A transport’s failure, with its own failure to deserialize a
document reported as Self::Decode.
Trait Implementations§
Source§impl<E: ActionError> ActionError for RepairError<E>
impl<E: ActionError> ActionError for RepairError<E>
Source§fn not_supported() -> Self
fn not_supported() -> Self
Create an error when the action is not supported.
Source§impl<E: BmcError + 'static> BmcError for RepairError<E>
impl<E: BmcError + 'static> BmcError for RepairError<E>
Source§fn error_class(&self) -> BmcErrorClass
fn error_class(&self) -> BmcErrorClass
Classifies the error for resource-level policy decisions. Read more
Source§fn response_body(&self) -> Option<&str>
fn response_body(&self) -> Option<&str>
The body of the HTTP response this error treats as one, when it has
one: a
BmcErrorClass::HttpResponse whose body a layer above may
read in a platform’s terms. The default is never one.Source§fn into_decode_error(self) -> Result<DecodeError, Self>
fn into_decode_error(self) -> Result<DecodeError, Self>
The document this error failed to deserialize, when it is that. Read more
Source§impl<E: Debug> Debug for RepairError<E>
impl<E: Debug> Debug for RepairError<E>
Source§impl<E: Display> Display for RepairError<E>
impl<E: Display> Display for RepairError<E>
Source§impl<E: StdError + 'static> Error for RepairError<E>
impl<E: StdError + 'static> Error for RepairError<E>
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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<E> !RefUnwindSafe for RepairError<E>
impl<E> !UnwindSafe for RepairError<E>
impl<E> Forget for RepairError<E>
impl<E> Freeze for RepairError<E>where
E: Freeze,
impl<E> Move for RepairError<E>
impl<E> Send for RepairError<E>where
E: Send,
impl<E> Sync for RepairError<E>where
E: Sync,
impl<E> Unpin for RepairError<E>where
E: Unpin,
impl<E> UnsafeUnpin for RepairError<E>where
E: UnsafeUnpin,
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