[−][src]Struct eventually_core::store::Persisted
An Event
wrapper for events that have been
successfully committed to the EventStore
.
EventStream
s 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]
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]
fn eq(&self, other: &Persisted<SourceId, T>) -> bool
[src]
fn ne(&self, other: &Persisted<SourceId, T>) -> bool
[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,
SourceId: RefUnwindSafe,
T: RefUnwindSafe,
impl<SourceId, T> Send for Persisted<SourceId, T> where
SourceId: Send,
T: Send,
SourceId: Send,
T: Send,
impl<SourceId, T> Sync for Persisted<SourceId, T> where
SourceId: Sync,
T: Sync,
SourceId: Sync,
T: Sync,
impl<SourceId, T> Unpin for Persisted<SourceId, T> where
SourceId: Unpin,
T: Unpin,
SourceId: Unpin,
T: Unpin,
impl<SourceId, T> UnwindSafe for Persisted<SourceId, T> where
SourceId: UnwindSafe,
T: UnwindSafe,
SourceId: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,