pub struct RetentionHold { /* private fields */ }Expand description
One active retention hold on a logical instance.
A hold protects history from purge. It does not block launch, restart, or any other lifecycle action.
Implementations§
Source§impl RetentionHold
impl RetentionHold
Sourcepub const fn new(
job_instance_id: JobInstanceId,
actor: ActorRef,
reason: ReasonCode,
placed_at: SystemTime,
) -> Self
pub const fn new( job_instance_id: JobInstanceId, actor: ActorRef, reason: ReasonCode, placed_at: SystemTime, ) -> Self
Records one placed hold.
Sourcepub const fn job_instance_id(&self) -> JobInstanceId
pub const fn job_instance_id(&self) -> JobInstanceId
Returns the held logical instance.
Sourcepub const fn reason(&self) -> &ReasonCode
pub const fn reason(&self) -> &ReasonCode
Borrows the closed-set reason code.
Sourcepub const fn placed_at(&self) -> SystemTime
pub const fn placed_at(&self) -> SystemTime
Returns the facade-clock instant the hold was placed.
Trait Implementations§
Source§impl Clone for RetentionHold
impl Clone for RetentionHold
Source§fn clone(&self) -> RetentionHold
fn clone(&self) -> RetentionHold
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RetentionHold
impl Debug for RetentionHold
impl Eq for RetentionHold
Source§impl PartialEq for RetentionHold
impl PartialEq for RetentionHold
impl StructuralPartialEq for RetentionHold
Auto Trait Implementations§
impl Freeze for RetentionHold
impl RefUnwindSafe for RetentionHold
impl Send for RetentionHold
impl Sync for RetentionHold
impl Unpin for RetentionHold
impl UnsafeUnpin for RetentionHold
impl UnwindSafe for RetentionHold
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