pub enum AgentdError {
Io(Error),
Protocol(ProtocolError),
Nix(Error),
Json(Error),
SerialPortNotFound(String),
ExecSession(String),
Init(String),
Shutdown,
}Expand description
Errors that can occur during agent daemon operations.
Variants§
Io(Error)
An I/O error.
Protocol(ProtocolError)
A protocol error.
Nix(Error)
A nix/libc error.
Json(Error)
A JSON serialization error.
SerialPortNotFound(String)
Failed to find the virtio serial port.
ExecSession(String)
An exec session error.
Init(String)
An init error.
Shutdown
Graceful shutdown requested.
Trait Implementations§
Source§impl Debug for AgentdError
impl Debug for AgentdError
Source§impl Display for AgentdError
impl Display for AgentdError
Source§impl Error for AgentdError
impl Error for AgentdError
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()
Source§impl From<Errno> for AgentdError
impl From<Errno> for AgentdError
Source§impl From<Error> for AgentdError
impl From<Error> for AgentdError
Source§impl From<Error> for AgentdError
impl From<Error> for AgentdError
Source§impl From<ProtocolError> for AgentdError
impl From<ProtocolError> for AgentdError
Source§fn from(source: ProtocolError) -> Self
fn from(source: ProtocolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AgentdError
impl !RefUnwindSafe for AgentdError
impl Send for AgentdError
impl Sync for AgentdError
impl Unpin for AgentdError
impl UnsafeUnpin for AgentdError
impl !UnwindSafe for AgentdError
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