pub enum Error {
Show 19 variants
BackendInternalError,
ClientExit,
Disconnect,
EnterSuspendedState(Error),
FrontendInternalError,
IncorrectFds,
InvalidCastToInt(TryFromIntError),
InvalidMessage,
InvalidOperation,
InvalidParam(&'static str),
OversizedMsg,
PartialMessage,
RecvBufferTooSmall {
got: usize,
want: usize,
},
ReqHandlerError(Error),
RestoreError(Error),
SnapshotError(Error),
SocketError(Error),
SocketRetry(Error),
TubeError(TubeError),
}
Expand description
Errors for vhost-user operations
Variants§
BackendInternalError
Failure from the backend side.
ClientExit
client exited properly.
Disconnect
client disconnected.
If connection is closed properly, use ClientExit
instead.
EnterSuspendedState(Error)
FrontendInternalError
Failure from the frontend side.
IncorrectFds
Fd array in question is too big or too small
InvalidCastToInt(TryFromIntError)
Invalid cast to int.
InvalidMessage
Invalid message format, flag or content.
InvalidOperation
Unsupported operations due to that the protocol feature hasn’t been negotiated.
InvalidParam(&'static str)
Invalid parameters.
OversizedMsg
Message is too large
PartialMessage
Only part of a message have been sent or received successfully
RecvBufferTooSmall
Provided recv buffer was too small, and data was dropped.
ReqHandlerError(Error)
Error from request handler
RestoreError(Error)
Failure to restore.
SnapshotError(Error)
Failure to snapshot.
SocketError(Error)
Generic socket errors.
SocketRetry(Error)
Should retry the socket operation again.
TubeError(TubeError)
Error from tx/rx on a Tube.
Trait Implementations§
source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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