pub enum Error {
NotFound(String),
MismatchedTypes {
expected: String,
actual: String,
},
MissingConfig(&'static str),
FieldInvalid {
field: String,
reason: String,
},
DeserializeFailed(String),
InitializeMetricsFailed(String),
ConvertProtoConfig(ConvertProtoConfigError),
Infallible,
}
Expand description
An error that occurred when attempting to create a Filter
from
a FilterFactory
.
Variants
NotFound(String)
MismatchedTypes
MissingConfig(&'static str)
FieldInvalid
DeserializeFailed(String)
InitializeMetricsFailed(String)
ConvertProtoConfig(ConvertProtoConfigError)
Infallible
Trait Implementations
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<ConvertProtoConfigError> for Error
impl From<ConvertProtoConfigError> for Error
sourcefn from(error: ConvertProtoConfigError) -> Self
fn from(error: ConvertProtoConfigError) -> Self
Converts to this type from the input type.
sourceimpl From<DecodeError> for Error
impl From<DecodeError> for Error
sourcefn from(error: DecodeError) -> Self
fn from(error: DecodeError) -> Self
Converts to this type from the input type.
sourceimpl From<EncodeError> for Error
impl From<EncodeError> for Error
sourcefn from(error: EncodeError) -> Self
fn from(error: EncodeError) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for ValidationError
impl From<Error> for ValidationError
sourceimpl From<Infallible> for Error
impl From<Infallible> for Error
sourcefn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request