pub enum ToolWitError {
Encode(EncodeError),
Decode(DecodeError),
}Expand description
Error raised when converting between the native tool model and its wire form.
Variants§
Encode(EncodeError)
Decode(DecodeError)
Trait Implementations§
Source§impl Debug for ToolWitError
impl Debug for ToolWitError
Source§impl Display for ToolWitError
impl Display for ToolWitError
Source§impl Error for ToolWitError
impl Error for ToolWitError
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<DecodeError> for ToolWitError
impl From<DecodeError> for ToolWitError
Source§fn from(e: DecodeError) -> ToolWitError
fn from(e: DecodeError) -> ToolWitError
Converts to this type from the input type.
Source§impl From<EncodeError> for ToolWitError
impl From<EncodeError> for ToolWitError
Source§fn from(e: EncodeError) -> ToolWitError
fn from(e: EncodeError) -> ToolWitError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ToolWitError
impl RefUnwindSafe for ToolWitError
impl Send for ToolWitError
impl Sync for ToolWitError
impl Unpin for ToolWitError
impl UnsafeUnpin for ToolWitError
impl UnwindSafe for ToolWitError
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