pub enum XskError {
SocketCreate(String),
SocketOption(String),
BindFailed(String),
QueueNotFound(u32),
AlreadyBound,
NotBound,
CloseFailed(String),
NotifyFailed(String),
InvalidDescriptor(u64),
InvalidState(String),
}Expand description
AF_XDP 操作错误
Variants§
SocketCreate(String)
Socket 创建失败
SocketOption(String)
Socket 选项设置失败
BindFailed(String)
Bind 失败
QueueNotFound(u32)
队列不存在
AlreadyBound
XSK 已绑定
NotBound
XSK 未绑定
CloseFailed(String)
XSK 关闭失败
NotifyFailed(String)
唤醒内核轮询失败(XDP_RING_NEED_WAKEUP 路径的 sendto/notify 失败)
InvalidDescriptor(u64)
描述符无效
InvalidState(String)
状态迁移非法(当前状态 → 期望状态)
Implementations§
Trait Implementations§
Source§impl Error for XskError
impl Error for XskError
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 XskError
impl RefUnwindSafe for XskError
impl Send for XskError
impl Sync for XskError
impl Unpin for XskError
impl UnsafeUnpin for XskError
impl UnwindSafe for XskError
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