pub enum EventNameError {
Empty,
LineTerminator,
}Expand description
Why a string is not usable as an event: name.
Variants§
Empty
The value was empty.
event: with nothing after it is a field with an empty value, which the
grammar allows and which means the default event name rather than the
empty one. Accepting it would make Some("") and None two spellings
of one thing, and a client dispatching on the name would have to treat
them differently for no reason.
LineTerminator
The value contained a line terminator.
The load-bearing refusal. See the module docs: this is what would turn a name into a second field.
Trait Implementations§
Source§impl Clone for EventNameError
impl Clone for EventNameError
Source§impl Debug for EventNameError
impl Debug for EventNameError
Source§impl Display for EventNameError
impl Display for EventNameError
impl Eq for EventNameError
Source§impl Error for EventNameError
impl Error for EventNameError
1.30.0 · 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 PartialEq for EventNameError
impl PartialEq for EventNameError
impl StructuralPartialEq for EventNameError
Auto Trait Implementations§
impl Freeze for EventNameError
impl RefUnwindSafe for EventNameError
impl Send for EventNameError
impl Sync for EventNameError
impl Unpin for EventNameError
impl UnsafeUnpin for EventNameError
impl UnwindSafe for EventNameError
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