pub enum DataPathError {
Show 21 variants
ConnectionError,
DisconnectionError(u64),
GrpcError(Status),
UnknownMsgType,
InvalidMessage(MessageError),
NoMatch(Name),
SubscriptionNotFound(Name),
SubscriptionIdNotFound(u64),
IdNotFound(u64),
ConnectionNotFound(u64),
ConnectionIdNotFound(u64),
MalformedMessage(MessageError),
ProcessingError(MessageError),
ConnectionTableAddError,
MessageProcessingError {
source: Box<DataPathError>,
msg: Box<Message>,
},
ConfigurationError(ConfigError),
RemoteSubscriptionAckTimeout(u32),
RemoteSubscriptionAckError(String),
AlreadyClosedError,
ShuttingDownError,
ShutdownTimeoutError,
}Expand description
DataPath and subscription table errors merged into a single enum.
Variants§
ConnectionError
DisconnectionError(u64)
GrpcError(Status)
UnknownMsgType
InvalidMessage(MessageError)
NoMatch(Name)
SubscriptionNotFound(Name)
SubscriptionIdNotFound(u64)
IdNotFound(u64)
ConnectionNotFound(u64)
ConnectionIdNotFound(u64)
MalformedMessage(MessageError)
ProcessingError(MessageError)
ConnectionTableAddError
MessageProcessingError
ConfigurationError(ConfigError)
RemoteSubscriptionAckTimeout(u32)
RemoteSubscriptionAckError(String)
AlreadyClosedError
ShuttingDownError
ShutdownTimeoutError
Trait Implementations§
Source§impl Debug for DataPathError
impl Debug for DataPathError
Source§impl Display for DataPathError
impl Display for DataPathError
Source§impl Error for DataPathError
impl Error for DataPathError
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<ConfigError> for DataPathError
impl From<ConfigError> for DataPathError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<MessageError> for DataPathError
impl From<MessageError> for DataPathError
Source§fn from(source: MessageError) -> Self
fn from(source: MessageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DataPathError
impl !RefUnwindSafe for DataPathError
impl Send for DataPathError
impl Sync for DataPathError
impl Unpin for DataPathError
impl UnsafeUnpin for DataPathError
impl !UnwindSafe for DataPathError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<E> ErrorChainExt for Ewhere
E: Error,
impl<E> ErrorChainExt for Ewhere
E: Error,
Source§fn chain(&self) -> DisplayErrorChain<&E>
fn chain(&self) -> DisplayErrorChain<&E>
Provides an fmt::Display implementation for an error as a chain.
Source§fn into_chain(self) -> DisplayErrorChain<E>
fn into_chain(self) -> DisplayErrorChain<E>
Same as
chain, but consumes self.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request