Enum ethtool::EthtoolError
source · pub enum EthtoolError {
UnexpectedMessage(NetlinkMessage<GenlMessage<EthtoolMessage>>),
NetlinkError(ErrorMessage),
RequestFailed(String),
Bug(String),
}
Variants§
UnexpectedMessage(NetlinkMessage<GenlMessage<EthtoolMessage>>)
NetlinkError(ErrorMessage)
RequestFailed(String)
Bug(String)
Trait Implementations§
source§impl Clone for EthtoolError
impl Clone for EthtoolError
source§fn clone(&self) -> EthtoolError
fn clone(&self) -> EthtoolError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EthtoolError
impl Debug for EthtoolError
source§impl Display for EthtoolError
impl Display for EthtoolError
source§impl Error for EthtoolError
impl Error for EthtoolError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 PartialEq<EthtoolError> for EthtoolError
impl PartialEq<EthtoolError> for EthtoolError
source§fn eq(&self, other: &EthtoolError) -> bool
fn eq(&self, other: &EthtoolError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for EthtoolError
impl StructuralEq for EthtoolError
impl StructuralPartialEq for EthtoolError
Auto Trait Implementations§
impl RefUnwindSafe for EthtoolError
impl Send for EthtoolError
impl Sync for EthtoolError
impl Unpin for EthtoolError
impl UnwindSafe for EthtoolError
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