#[non_exhaustive]pub enum DaemonError {
Protocol(ParseError),
Store(StoreError),
Engine(EngineError),
Io(Error),
Other(Error),
StaleToken {
current: StateToken,
reason: &'static str,
},
NoSession,
UnknownSession(String),
UnknownPage(String),
UnknownRef(u32),
BadRequest(String),
Unsupported {
engine: &'static str,
primitive: &'static str,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Protocol(ParseError)
Store(StoreError)
Engine(EngineError)
Io(Error)
Other(Error)
StaleToken
The agent’s pre-image token did not match the page’s current token.
NoSession
No active session for this connection.
UnknownSession(String)
Session id refers to no known session.
UnknownPage(String)
Page id refers to no known page in this session.
UnknownRef(u32)
Ref does not exist in the page’s current tree.
BadRequest(String)
The wire request was malformed.
Unsupported
Engine’s capability set excludes this primitive on this platform.
Implementations§
Trait Implementations§
Source§impl Debug for DaemonError
impl Debug for DaemonError
Source§impl Display for DaemonError
impl Display for DaemonError
Source§impl Error for DaemonError
impl Error for DaemonError
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<EngineError> for DaemonError
impl From<EngineError> for DaemonError
Source§fn from(source: EngineError) -> Self
fn from(source: EngineError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DaemonError
impl From<Error> for DaemonError
Source§impl From<Error> for DaemonError
impl From<Error> for DaemonError
Source§impl From<ParseError> for DaemonError
impl From<ParseError> for DaemonError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for DaemonError
impl From<StoreError> for DaemonError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DaemonError
impl !RefUnwindSafe for DaemonError
impl Send for DaemonError
impl Sync for DaemonError
impl Unpin for DaemonError
impl UnsafeUnpin for DaemonError
impl !UnwindSafe for DaemonError
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