pub struct NetstackError(pub Error);
Expand description
Newtype wrapper of fidl_fuchsia_net_stack::Error
so that external traits
(thiserror::Error
in particular) can be implemented for it.
Tuple Fields§
§0: Error
Trait Implementations§
Source§impl Debug for NetstackError
impl Debug for NetstackError
Source§impl Display for NetstackError
impl Display for NetstackError
Source§impl Error for NetstackError
impl Error for NetstackError
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()
Auto Trait Implementations§
impl Freeze for NetstackError
impl RefUnwindSafe for NetstackError
impl Send for NetstackError
impl Sync for NetstackError
impl Unpin for NetstackError
impl UnwindSafe for NetstackError
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