pub struct CommandOutbox {
pub id: CommandOutboxId,
pub sequence: i64,
pub command: CommandEnvelope,
pub state: OutboxState,
pub last_error: Option<PublishDispatchError>,
pub lifecycle: OutboxLifecycle,
}Fields§
§id: CommandOutboxId§sequence: i64§command: CommandEnvelope§state: OutboxState§last_error: Option<PublishDispatchError>§lifecycle: OutboxLifecycleTrait Implementations§
Source§impl Clone for CommandOutbox
impl Clone for CommandOutbox
Source§fn clone(&self) -> CommandOutbox
fn clone(&self) -> CommandOutbox
Returns a duplicate 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 Debug for CommandOutbox
impl Debug for CommandOutbox
Source§impl Outbox for CommandOutbox
impl Outbox for CommandOutbox
type Id = CommandOutboxId
type Message = CommandEnvelope
fn id(&self) -> Self::Id
fn ordering_key(&self) -> OrderingKey
fn message(&self) -> &Self::Message
fn state(&self) -> &OutboxState
fn state_mut(&mut self) -> &mut OutboxState
fn last_error(&self) -> &Option<PublishDispatchError>
fn last_error_mut(&mut self) -> &mut Option<PublishDispatchError>
fn lifecycle(&self) -> &OutboxLifecycle
fn lifecycle_mut(&mut self) -> &mut OutboxLifecycle
fn ack(&mut self) -> Result<(), OutboxError>
fn nack( &mut self, cause: &PublishDispatchError, retry_options: &OutboxRetryOptions, ) -> Result<(), OutboxError>
fn extend_lease( &mut self, owner: &OutboxRelayInstance, lease_for: OutboxLeaseDuration, ) -> Result<(), OutboxError>
fn acquire_lease( &mut self, owner: &OutboxRelayInstance, lease_for: OutboxLeaseDuration, ) -> Result<(), OutboxError>
Source§impl PartialEq for CommandOutbox
impl PartialEq for CommandOutbox
impl Eq for CommandOutbox
impl StructuralPartialEq for CommandOutbox
Auto Trait Implementations§
impl Freeze for CommandOutbox
impl RefUnwindSafe for CommandOutbox
impl Send for CommandOutbox
impl Sync for CommandOutbox
impl Unpin for CommandOutbox
impl UnwindSafe for CommandOutbox
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