Enum quilkin::filters::CreationError
source · pub enum CreationError {
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§
source§impl Debug for CreationError
impl Debug for CreationError
source§impl Display for CreationError
impl Display for CreationError
source§impl Error for CreationError
impl Error for CreationError
1.30.0 · 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<ConvertProtoConfigError> for CreationError
impl From<ConvertProtoConfigError> for CreationError
source§fn from(error: ConvertProtoConfigError) -> Self
fn from(error: ConvertProtoConfigError) -> Self
Converts to this type from the input type.
source§impl From<CreationError> for ValidationError
impl From<CreationError> for ValidationError
source§fn from(source: CreationError) -> Self
fn from(source: CreationError) -> Self
Converts to this type from the input type.
source§impl From<DecodeError> for CreationError
impl From<DecodeError> for CreationError
source§fn from(error: DecodeError) -> Self
fn from(error: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<EncodeError> for CreationError
impl From<EncodeError> for CreationError
source§fn from(error: EncodeError) -> Self
fn from(error: EncodeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for CreationError
impl From<Error> for CreationError
source§impl From<Error> for CreationError
impl From<Error> for CreationError
source§impl From<Error> for CreationError
impl From<Error> for CreationError
source§impl From<Infallible> for CreationError
impl From<Infallible> for CreationError
source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
source§impl PartialEq for CreationError
impl PartialEq for CreationError
source§fn eq(&self, other: &CreationError) -> bool
fn eq(&self, other: &CreationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CreationError
impl StructuralPartialEq for CreationError
Auto Trait Implementations§
impl RefUnwindSafe for CreationError
impl Send for CreationError
impl Sync for CreationError
impl Unpin for CreationError
impl UnwindSafe for CreationError
Blanket Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<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