[−][src]Struct krill::commons::eventsourcing::SentCommand
Convenience wrapper so that implementations can just implement ['CommandDetails'] and leave the id and version boilerplate.
Implementations
impl<C: CommandDetails> SentCommand<C>
[src]
pub fn new(id: &Handle, version: Option<u64>, details: C) -> Self
[src]
pub fn into_details(self) -> C
[src]
Trait Implementations
impl<C: Clone + CommandDetails> Clone for SentCommand<C>
[src]
fn clone(&self) -> SentCommand<C>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C: CommandDetails> Command for SentCommand<C>
[src]
type Event = C::Event
Identify the type of event returned by the aggregate that uses this command. This is needed because we may need to check whether a command conflicts with recent events. Read more
type StorableDetails = C::StorableDetails
Identify the type of storable component for this command. Commands may contain short-lived things (e.g. an Arc) or even secrets which should not be persisted. Read more
fn handle(&self) -> &Handle
[src]
fn version(&self) -> Option<u64>
[src]
fn store(&self) -> Self::StorableDetails
[src]
fn actor(&self) -> &str
[src]
fn conflicts(&self, _events: &[Self::Event]) -> bool
[src]
impl<C: CommandDetails> Display for SentCommand<C>
[src]
Auto Trait Implementations
impl<C> RefUnwindSafe for SentCommand<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> Send for SentCommand<C> where
C: Send,
C: Send,
impl<C> Sync for SentCommand<C> where
C: Sync,
C: Sync,
impl<C> Unpin for SentCommand<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for SentCommand<C> where
C: UnwindSafe,
C: 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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,