pub struct MtopError { /* private fields */ }
Implementations§
Source§impl MtopError
impl MtopError
pub fn runtime<S>(msg: S) -> MtopError
pub fn runtime_cause<S, E>(msg: S, e: E) -> MtopError
pub fn configuration<S>(msg: S) -> MtopError
pub fn configuration_cause<S, E>(msg: S, e: E) -> MtopError
pub fn timeout<D>(t: Duration, operation: D) -> MtopErrorwhere
D: Display,
pub fn kind(&self) -> ErrorKind
Trait Implementations§
Source§impl Error for MtopError
impl Error for MtopError
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<ProtocolError> for MtopError
impl From<ProtocolError> for MtopError
Source§fn from(e: ProtocolError) -> Self
fn from(e: ProtocolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MtopError
impl !RefUnwindSafe for MtopError
impl Send for MtopError
impl Sync for MtopError
impl Unpin for MtopError
impl !UnwindSafe for MtopError
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