Struct rmp_ipc::Event [−][src]
pub struct Event { /* fields omitted */ }
Expand description
A container representing an event and underlying binary data. The data can be decoded into an object representation or read as raw binary data.
Implementations
impl Event
[src]
impl Event
[src]pub fn data<T: DeserializeOwned>(&self) -> Result<T>
[src]
pub fn data<T: DeserializeOwned>(&self) -> Result<T>
[src]Decodes the data to the given type
pub async fn from_async_read<R: AsyncRead + Unpin>(
reader: &mut R
) -> Result<Self>
[src]
pub async fn from_async_read<R: AsyncRead + Unpin>(
reader: &mut R
) -> Result<Self>
[src]Reads an event message
pub fn reference_id(&self) -> Option<u64>
[src]
pub fn reference_id(&self) -> Option<u64>
[src]The ID of the message referenced by this message. It represents the message that is replied to and can be None.
Trait Implementations
impl<'de> Deserialize<'de> for Event
[src]
impl<'de> Deserialize<'de> for Event
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,