pub enum CommandError {
Timeout,
CellNotPresent,
ApiError,
CellError,
Internal,
SmallBuffer,
Other(i32),
}Expand description
Why sending a command to a cell failed.
Variants§
Timeout
No response received within the timeout
CellNotPresent
The indicated cell is not present in the system (TODO we need some kind of cell registry for this)
ApiError
The cell exists, but either does not have the specified command or the provided arguments are invalid (e.g., arguments were provided to a cell not expecting input or vice versa)
CellError
The receiving cell crashed/errored out while processing the query
Internal
Internal errors within the framework
SmallBuffer
The provided buffer was too small for the response
Other(i32)
Catchall for other error codes (should not be used)
Implementations§
Trait Implementations§
Source§impl Clone for CommandError
impl Clone for CommandError
impl Copy for CommandError
Source§impl Display for CommandError
impl Display 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 UnsafeUnpin 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