pub struct Event { /* private fields */ }Expand description
Runtime event value emitted by a command transaction.
Implementations§
Source§impl Event
impl Event
Sourcepub fn event_kind(&self) -> u8
pub fn event_kind(&self) -> u8
Returns the event kind.
Sourcepub fn into_payload(self) -> Vec<u8> ⓘ
pub fn into_payload(self) -> Vec<u8> ⓘ
Consumes the event and returns the encoded payload.
Sourcepub fn into_frame(self, tx_seq: TxSeq) -> EventFrame
pub fn into_frame(self, tx_seq: TxSeq) -> EventFrame
Attaches a committed transaction sequence to this event.
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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