[][src]Enum splinter::service::error::ServiceError

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

UnableToCreate(Box<dyn Error + Send>)

Returned if an error is detected when creating a service

InvalidMessageFormat(Box<dyn Error + Send>)

Returned if an error is detected when parsing a message

UnableToHandleMessage(Box<dyn Error + Send>)

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

PoisonedLock(String)

Returned if a service encounters a poisoned lock and is unable to recover

NotStarted

Returned if handle_message is called when not yet registered.

Trait Implementations

impl Debug for ServiceError[src]

impl Display for ServiceError[src]

impl Error for ServiceError[src]

impl From<ProtobufError> for ServiceError[src]

impl From<ServiceError> for AdminServiceError[src]

impl From<ServiceError> for ProposalManagerError[src]

impl From<ServiceSendError> for ServiceError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<P, N> IntoBytes<P> for N where
    P: Message + FromNative<N>, 
[src]

impl<N, P> IntoNative<N> for P where
    N: FromProto<P>, 
[src]

impl<N, P> IntoProto<P> for N where
    P: FromNative<N>, 
[src]

impl<T> IntoSql for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,