[][src]Struct eventually_core::store::Persisted

pub struct Persisted<SourceId, T> { /* fields omitted */ }

An Event wrapper for events that have been successfully committed to the EventStore.

EventStreams are composed of these events.

Implementations

impl<SourceId, T> Persisted<SourceId, T>[src]

pub fn from(source_id: SourceId, event: T) -> EventBuilder<SourceId, T>[src]

Creates a new EventBuilder from the provided Event value.

pub fn sequence_number(&self) -> u32[src]

Returns the event sequence number.

pub fn source_id(&self) -> &SourceId[src]

Returns the SourceId of the persisted event.

pub fn take(self) -> T[src]

Unwraps the inner Event from the Persisted wrapper.

Trait Implementations

impl<SourceId: Clone, T: Clone> Clone for Persisted<SourceId, T>[src]

impl<SourceId: Debug, T: Debug> Debug for Persisted<SourceId, T>[src]

impl<SourceId, T> Deref for Persisted<SourceId, T>[src]

type Target = T

The resulting type after dereferencing.

impl<SourceId: Eq, T: Eq> Eq for Persisted<SourceId, T>[src]

impl<SourceId: PartialEq, T: PartialEq> PartialEq<Persisted<SourceId, T>> for Persisted<SourceId, T>[src]

impl<SourceId, T> StructuralEq for Persisted<SourceId, T>[src]

impl<SourceId, T> StructuralPartialEq for Persisted<SourceId, T>[src]

impl<SourceId, T> Versioned for Persisted<SourceId, T>[src]

Auto Trait Implementations

impl<SourceId, T> RefUnwindSafe for Persisted<SourceId, T> where
    SourceId: RefUnwindSafe,
    T: RefUnwindSafe

impl<SourceId, T> Send for Persisted<SourceId, T> where
    SourceId: Send,
    T: Send

impl<SourceId, T> Sync for Persisted<SourceId, T> where
    SourceId: Sync,
    T: Sync

impl<SourceId, T> Unpin for Persisted<SourceId, T> where
    SourceId: Unpin,
    T: Unpin

impl<SourceId, T> UnwindSafe for Persisted<SourceId, T> where
    SourceId: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.