pub struct EventFrame { /* private fields */ }Expand description
Event plus committed transaction sequence.
Implementations§
Source§impl EventFrame
impl EventFrame
Sourcepub fn new(
tx_seq: u64,
event_seq: u32,
event_kind: u8,
payload: Vec<u8>,
) -> Self
pub fn new( tx_seq: u64, event_seq: u32, event_kind: u8, payload: Vec<u8>, ) -> Self
Creates an event frame.
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 frame and returns the encoded payload.
Sourcepub fn into_parts(self) -> (TxSeq, Event)
pub fn into_parts(self) -> (TxSeq, Event)
Splits the frame into transaction sequence and event.
Trait Implementations§
Source§impl Clone for EventFrame
impl Clone for EventFrame
Source§fn clone(&self) -> EventFrame
fn clone(&self) -> EventFrame
Returns a duplicate 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 EventFrame
impl Debug for EventFrame
Source§impl PartialEq for EventFrame
impl PartialEq for EventFrame
impl Eq for EventFrame
impl StructuralPartialEq for EventFrame
Auto Trait Implementations§
impl Freeze for EventFrame
impl RefUnwindSafe for EventFrame
impl Send for EventFrame
impl Sync for EventFrame
impl Unpin for EventFrame
impl UnsafeUnpin for EventFrame
impl UnwindSafe for EventFrame
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