Struct krill::commons::eventsourcing::SentCommand
source · pub struct SentCommand<C: CommandDetails> { /* private fields */ }
Expand description
Convenience wrapper so that implementations can just implement [‘CommandDetails’] and leave the id and version boilerplate.
Implementations§
source§impl SentCommand<SignerInfoCommandDetails>
impl SentCommand<SignerInfoCommandDetails>
pub fn add_key( id: &SignerHandle, version: Option<u64>, key_id: &KeyIdentifier, internal_key_id: &str ) -> Self
pub fn remove_key( id: &SignerHandle, version: Option<u64>, key_id: &KeyIdentifier ) -> Self
pub fn change_signer_name( id: &SignerHandle, version: Option<u64>, signer_name: &str ) -> Self
pub fn change_signer_info( id: &SignerHandle, version: Option<u64>, signer_info: &str ) -> Self
source§impl<C: CommandDetails> SentCommand<C>
impl<C: CommandDetails> SentCommand<C>
source§impl SentCommand<TrustAnchorProxyCommandDetails>
impl SentCommand<TrustAnchorProxyCommandDetails>
pub fn add_repo( id: &TrustAnchorHandle, repository: RepositoryContact, actor: &Actor ) -> Self
pub fn add_signer( id: &TrustAnchorHandle, signer: TrustAnchorSignerInfo, actor: &Actor ) -> Self
pub fn make_signer_request(id: &TrustAnchorHandle, actor: &Actor) -> Self
pub fn process_signer_response( id: &TrustAnchorHandle, response: TrustAnchorSignedResponse, actor: &Actor ) -> Self
pub fn add_child( id: &TrustAnchorHandle, child: AddChildRequest, actor: &Actor ) -> Self
pub fn add_child_request( id: &TrustAnchorHandle, child: ChildHandle, request: ProvisioningRequest, actor: &Actor ) -> Self
pub fn give_child_response( id: &TrustAnchorHandle, child: ChildHandle, key: KeyIdentifier, actor: &Actor ) -> Self
source§impl SentCommand<TrustAnchorSignerCommandDetails>
impl SentCommand<TrustAnchorSignerCommandDetails>
pub fn make_process_request_command( id: &TrustAnchorHandle, request: TrustAnchorSignedRequest, timing: TaTimingConfig, signer: Arc<KrillSigner>, actor: &Actor ) -> TrustAnchorSignerCommand
Trait Implementations§
source§impl<C: Clone + CommandDetails> Clone for SentCommand<C>
impl<C: Clone + CommandDetails> Clone for SentCommand<C>
source§fn clone(&self) -> SentCommand<C>
fn clone(&self) -> SentCommand<C>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<C: CommandDetails> Command for SentCommand<C>
impl<C: CommandDetails> Command for SentCommand<C>
§type StorableDetails = <C as CommandDetails>::StorableDetails
type StorableDetails = <C as CommandDetails>::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.
source§fn handle(&self) -> &MyHandle
fn handle(&self) -> &MyHandle
Identifies the aggregate, useful when storing and retrieving the event.
source§fn version(&self) -> Option<u64>
fn version(&self) -> Option<u64>
The version of the aggregate that this command updates. If this
command should update whatever the latest version happens to be, then
use None here.
source§fn store(&self) -> Self::StorableDetails
fn store(&self) -> Self::StorableDetails
Get the storable information for this command
Auto Trait Implementations§
impl<C> RefUnwindSafe for SentCommand<C>where
C: RefUnwindSafe,
impl<C> Send for SentCommand<C>
impl<C> Sync for SentCommand<C>
impl<C> Unpin for SentCommand<C>where
C: Unpin,
impl<C> UnwindSafe for SentCommand<C>where
C: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Text for Twhere
T: Display,
impl<T> Text for Twhere
T: Display,
source§fn write_escaped(
&self,
mode: TextEscape,
target: &mut impl Write
) -> Result<(), Error>
fn write_escaped( &self, mode: TextEscape, target: &mut impl Write ) -> Result<(), Error>
Write text escaped for the given mode to
target
.