pub enum LinuxNetworkError {
SocketCreationFailed {
error: String,
},
SocketBindFailed {
error: String,
},
MessageSendFailed {
error: String,
},
MessageReceiveFailed {
error: String,
},
InvalidMessage {
message: String,
},
InterfaceNotFound {
interface_name: String,
},
PermissionDenied {
operation: String,
},
SystemLimitExceeded {
limit_type: String,
},
NetworkNamespaceError {
error: String,
},
EnumerationTimeout {
timeout: Duration,
},
}
Expand description
Linux netlink error types
Variants§
SocketCreationFailed
Netlink socket creation failed
SocketBindFailed
Failed to bind netlink socket
MessageSendFailed
Failed to send netlink message
MessageReceiveFailed
Failed to receive netlink message
InvalidMessage
Invalid netlink message format
InterfaceNotFound
Interface not found
PermissionDenied
Permission denied for netlink operations
SystemLimitExceeded
System limit exceeded
NetworkNamespaceError
Network namespace error
EnumerationTimeout
Interface enumeration timeout
Trait Implementations§
Source§impl Clone for LinuxNetworkError
impl Clone for LinuxNetworkError
Source§fn clone(&self) -> LinuxNetworkError
fn clone(&self) -> LinuxNetworkError
Returns a duplicate 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 LinuxNetworkError
impl Debug for LinuxNetworkError
Source§impl Display for LinuxNetworkError
impl Display for LinuxNetworkError
Source§impl Error for LinuxNetworkError
impl Error for LinuxNetworkError
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 LinuxNetworkError
impl RefUnwindSafe for LinuxNetworkError
impl Send for LinuxNetworkError
impl Sync for LinuxNetworkError
impl Unpin for LinuxNetworkError
impl UnwindSafe for LinuxNetworkError
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