pub enum TopicFormatError {
HashWildcardNotSupported,
ParameterCountMismatch {
expected: usize,
provided: usize,
},
FormatError {
source: Error,
},
}Expand description
Error types for formatting topics with parameters
Variants§
HashWildcardNotSupported
Attempted to format a topic with a hash wildcard (#) which is not allowed
ParameterCountMismatch
Parameter count mismatch when formatting a topic
Fields
FormatError
Error during formatting, e.g. invalid parameter type
Trait Implementations§
Source§impl Clone for TopicFormatError
impl Clone for TopicFormatError
Source§fn clone(&self) -> TopicFormatError
fn clone(&self) -> TopicFormatError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TopicFormatError
impl Debug for TopicFormatError
Source§impl Display for TopicFormatError
impl Display for TopicFormatError
impl Eq for TopicFormatError
Source§impl Error for TopicFormatError
impl Error for TopicFormatError
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<Error> for TopicFormatError
impl From<Error> for TopicFormatError
Source§impl From<TopicFormatError> for TopicError
impl From<TopicFormatError> for TopicError
Source§fn from(source: TopicFormatError) -> Self
fn from(source: TopicFormatError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TopicFormatError
impl PartialEq for TopicFormatError
Source§fn eq(&self, other: &TopicFormatError) -> bool
fn eq(&self, other: &TopicFormatError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TopicFormatError
Auto Trait Implementations§
impl Freeze for TopicFormatError
impl RefUnwindSafe for TopicFormatError
impl Send for TopicFormatError
impl Sync for TopicFormatError
impl Unpin for TopicFormatError
impl UnsafeUnpin for TopicFormatError
impl UnwindSafe for TopicFormatError
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.