Enum ghost_actor::GhostError
source · #[non_exhaustive]
pub enum GhostError {
Disconnected,
Other(Box<dyn Error + Send + Sync>),
}
Expand description
Ghost error type.
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.
Disconnected
GhostActorDisconnected
Other(Box<dyn Error + Send + Sync>)
Unspecified GhostActor error.
Implementations§
Trait Implementations§
source§impl Debug for GhostError
impl Debug for GhostError
source§impl Display for GhostError
impl Display for GhostError
source§impl Error for GhostError
impl Error for GhostError
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()
source§impl From<&str> for GhostError
impl From<&str> for GhostError
source§impl From<Canceled> for GhostError
impl From<Canceled> for GhostError
source§impl From<GhostError> for ()
impl From<GhostError> for ()
source§fn from(_: GhostError)
fn from(_: GhostError)
Converts to this type from the input type.