Struct twilight_model::gateway::event::EventConversionError
source · [−]pub struct EventConversionError { /* private fields */ }Expand description
An error that describes a failure to convert from one event type to another.
Implementations
sourceimpl 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
sourceimpl Debug for EventConversionError
impl Debug for EventConversionError
sourceimpl Display for EventConversionError
impl Display for EventConversionError
sourceimpl Error for EventConversionError
impl Error for EventConversionError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for EventConversionError
impl Send for EventConversionError
impl Sync for EventConversionError
impl Unpin for EventConversionError
impl UnwindSafe for EventConversionError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more