Enum splinter::service::error::ServiceError [−][src]
pub enum ServiceError {
UnableToCreate(Box<dyn Error + Send>),
InvalidMessageFormat(Box<dyn Error + Send>),
UnableToHandleMessage(Box<dyn Error + Send>),
UnableToSendMessage(Box<ServiceSendError>),
PoisonedLock(String),
NotStarted,
}
Variants
Returned if an error is detected when creating a service
Returned if an error is detected when parsing a message
Returned if an error is detected during the handling of a message
UnableToSendMessage(Box<ServiceSendError>)
Returned if an error occurs during the sending of an outbound message
Tuple Fields of UnableToSendMessage
0: Box<ServiceSendError>
PoisonedLock(String)
Returned if a service encounters a poisoned lock and is unable to recover
Tuple Fields of PoisonedLock
0: String
Returned if handle_message is called when not yet registered.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ServiceError
impl Send for ServiceError
impl !Sync for ServiceError
impl Unpin for ServiceError
impl !UnwindSafe for ServiceError
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more