pub struct UnknownEvent { /* private fields */ }Expand description
An unknown event emitted by a service.
Implementations§
Source§impl UnknownEvent
impl UnknownEvent
Sourcepub fn into_low_level(self) -> Event
pub fn into_low_level(self) -> Event
Extracts the inner low-level event.
Sourcepub fn args(&self) -> &SerializedValueSlice
pub fn args(&self) -> &SerializedValueSlice
Returns a slice to the event’s serialized arguments.
Sourcepub fn deserialize<T: Deserialize>(&self) -> Result<T, DeserializeError>
pub fn deserialize<T: Deserialize>(&self) -> Result<T, DeserializeError>
Deserializes the event’s arguments.
Sourcepub fn deserialize_as_value(&self) -> Result<Value, DeserializeError>
pub fn deserialize_as_value(&self) -> Result<Value, DeserializeError>
Deserializes the events’s arguments into a generic Value.
Trait Implementations§
Source§impl Clone for UnknownEvent
impl Clone for UnknownEvent
Source§fn clone(&self) -> UnknownEvent
fn clone(&self) -> UnknownEvent
Returns a copy of the value. Read more
1.0.0 · 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 UnknownEvent
impl Debug for UnknownEvent
Source§impl Display for UnknownEvent
impl Display for UnknownEvent
Source§impl Error for UnknownEvent
impl Error for UnknownEvent
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 From<&UnknownEvent> for Error
impl From<&UnknownEvent> for Error
Source§fn from(event: &UnknownEvent) -> Self
fn from(event: &UnknownEvent) -> Self
Converts to this type from the input type.
Source§impl From<&UnknownEvent> for InvalidEvent
impl From<&UnknownEvent> for InvalidEvent
Source§fn from(event: &UnknownEvent) -> Self
fn from(event: &UnknownEvent) -> Self
Converts to this type from the input type.
Source§impl From<UnknownEvent> for Error
impl From<UnknownEvent> for Error
Source§fn from(event: UnknownEvent) -> Self
fn from(event: UnknownEvent) -> Self
Converts to this type from the input type.
Source§impl From<UnknownEvent> for InvalidEvent
impl From<UnknownEvent> for InvalidEvent
Source§fn from(event: UnknownEvent) -> Self
fn from(event: UnknownEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UnknownEvent
impl RefUnwindSafe for UnknownEvent
impl Send for UnknownEvent
impl Sync for UnknownEvent
impl Unpin for UnknownEvent
impl UnwindSafe for UnknownEvent
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