pub struct EventConversionError { /* private fields */ }
Expand description
An error that describes a failure to convert from one event type to another.
Implementations§
Source§impl EventConversionError
impl EventConversionError
pub const fn new(event: Event) -> EventConversionError
Sourcepub fn into_event(self) -> Event
pub fn into_event(self) -> Event
Consume the error, returning the original event.
Trait Implementations§
Source§impl Debug for EventConversionError
impl Debug for EventConversionError
Source§impl Display for EventConversionError
impl Display for EventConversionError
Source§impl Error for EventConversionError
impl Error for EventConversionError
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 Freeze for EventConversionError
impl RefUnwindSafe for EventConversionError
impl Send for EventConversionError
impl Sync for EventConversionError
impl Unpin for EventConversionError
impl UnwindSafe for EventConversionError
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