pub enum EmitError<D: Driver> {
Driver(D::Error),
Parser(ParserError),
}Available on crate features
msgpack-parser or common-parser only.Expand description
An error that occurs when broadcasting messages.
Variants§
Driver(D::Error)
The underlying driver error.
Parser(ParserError)
A parsing error that is specific to the parser used.
Trait Implementations§
Source§impl<D: Driver> Error for EmitError<D>
impl<D: Driver> Error for EmitError<D>
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()
Auto Trait Implementations§
impl<D> Freeze for EmitError<D>
impl<D> !RefUnwindSafe for EmitError<D>
impl<D> Send for EmitError<D>
impl<D> Sync for EmitError<D>
impl<D> Unpin for EmitError<D>
impl<D> !UnwindSafe for EmitError<D>
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