Enum virtio_vsock::packet::Error
source · pub enum Error {
DescriptorChainTooShort,
DescriptorLengthTooSmall,
DescriptorLengthTooLong,
InvalidHeaderInputSize(usize),
InvalidHeaderLen(u32),
InvalidMemoryAccess(GuestMemoryError),
InvalidVolatileAccess(VolatileMemoryError),
UnexpectedReadOnlyDescriptor,
UnexpectedWriteOnlyDescriptor,
}Expand description
Vsock packet parsing errors.
Variants
DescriptorChainTooShort
Too few descriptors in a descriptor chain.
DescriptorLengthTooSmall
Descriptor that was too short to use.
DescriptorLengthTooLong
Descriptor that was too long to use.
InvalidHeaderInputSize(usize)
The slice for creating a header has an invalid length.
InvalidHeaderLen(u32)
The len header field value exceeds the maximum allowed data size.
InvalidMemoryAccess(GuestMemoryError)
Invalid guest memory access.
InvalidVolatileAccess(VolatileMemoryError)
Invalid volatile memory access.
UnexpectedReadOnlyDescriptor
Read only descriptor that protocol says to write to.
UnexpectedWriteOnlyDescriptor
Write only descriptor that protocol says to read from.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more