pub enum CommandError {
CommandFailed(Error),
ReadyTimeout,
TimerError,
UnexpectedWouldBlock,
}Expand description
General errors for simple commands (e.g. enabling a configuration flag)
Variants§
CommandFailed(Error)
Command failed with the given upstream error
ReadyTimeout
No ready message received within timout (5 seconds)
TimerError
Upstream timer error
UnexpectedWouldBlock
Received an unexpected WouldBlock. The most common cause of errors is an incorrect mode of the client. This must be either timeout or blocking.
Trait Implementations§
Source§impl Clone for CommandError
impl Clone for CommandError
Source§fn clone(&self) -> CommandError
fn clone(&self) -> CommandError
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 CommandError
impl Debug for CommandError
Source§impl PartialEq for CommandError
impl PartialEq for CommandError
impl StructuralPartialEq for CommandError
Auto Trait Implementations§
impl Freeze for CommandError
impl RefUnwindSafe for CommandError
impl Send for CommandError
impl Sync for CommandError
impl Unpin for CommandError
impl UnwindSafe for CommandError
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