pub struct Claimed {
pub id: Uuid,
pub kind: MessageKind,
pub name: String,
pub payload: Value,
pub attempt: i64,
pub traceparent: Option<TraceParent>,
pub available_at: Timestamp,
pub actor: Option<Uuid>,
}Expand description
Its attempt fences every later write, so an expired lease can neither finish nor fail it.
Fields§
§id: Uuid§kind: MessageKind§name: String§payload: Value§attempt: i64§traceparent: Option<TraceParent>§available_at: Timestamp§actor: Option<Uuid>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Claimed
impl RefUnwindSafe for Claimed
impl Send for Claimed
impl Sync for Claimed
impl Unpin for Claimed
impl UnsafeUnpin for Claimed
impl UnwindSafe for Claimed
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