pub struct EventStream { /* private fields */ }Implementations§
Source§impl EventStream
impl EventStream
pub const fn new(events: Vec<EventEnvelope>, last_sequence: Nat) -> Self
pub const fn try_new( events: Vec<EventEnvelope>, last_sequence: Nat, ) -> Result<Self, ValidationError>
pub fn events(&self) -> <Vec<EventEnvelope> as FieldAccess>::Output<'_> ⓘ
pub fn last_sequence(&self) -> <Nat as FieldAccess>::Output<'_>
Trait Implementations§
Source§impl Clone for EventStream
impl Clone for EventStream
Source§fn clone(&self) -> EventStream
fn clone(&self) -> EventStream
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EventStream
impl Debug for EventStream
Source§impl PartialEq for EventStream
impl PartialEq for EventStream
Source§fn eq(&self, other: &EventStream) -> bool
fn eq(&self, other: &EventStream) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for EventStream
impl StructuralPartialEq for EventStream
Auto Trait Implementations§
impl Freeze for EventStream
impl RefUnwindSafe for EventStream
impl Send for EventStream
impl Sync for EventStream
impl Unpin for EventStream
impl UnsafeUnpin for EventStream
impl UnwindSafe for EventStream
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