[][src]Struct krill::commons::eventsourcing::SentCommand

pub struct SentCommand<C: CommandDetails> { /* fields omitted */ }

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]

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

impl<C: CommandDetails> Display for SentCommand<C>[src]

Auto Trait Implementations

impl<C> RefUnwindSafe for SentCommand<C> where
    C: RefUnwindSafe

impl<C> Send for SentCommand<C> where
    C: Send

impl<C> Sync for SentCommand<C> where
    C: Sync

impl<C> Unpin for SentCommand<C> where
    C: Unpin

impl<C> UnwindSafe for SentCommand<C> where
    C: 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> ToString for T where
    T: Display + ?Sized
[src]

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.