pub struct JobClaim { /* private fields */ }Expand description
Attribution and lease data for one active claim.
Implementations§
Source§impl JobClaim
impl JobClaim
Sourcepub const fn new(
tool: ToolIdentity,
agent: Option<AgentIdentity>,
expires_at: Timestamp,
) -> Self
pub const fn new( tool: ToolIdentity, agent: Option<AgentIdentity>, expires_at: Timestamp, ) -> Self
Creates observed attribution and authority-selected expiry data. This value grants no worker ownership.
Sourcepub const fn tool(&self) -> &ToolIdentity
pub const fn tool(&self) -> &ToolIdentity
Returns the claiming tool identity.
Sourcepub const fn agent(&self) -> Option<&AgentIdentity>
pub const fn agent(&self) -> Option<&AgentIdentity>
Returns optional agent attribution for the worker.
Sourcepub const fn expires_at(&self) -> Timestamp
pub const fn expires_at(&self) -> Timestamp
Returns the authority-selected lease expiry.
Trait Implementations§
impl Eq for JobClaim
impl StructuralPartialEq for JobClaim
Auto Trait Implementations§
impl Freeze for JobClaim
impl RefUnwindSafe for JobClaim
impl Send for JobClaim
impl Sync for JobClaim
impl Unpin for JobClaim
impl UnsafeUnpin for JobClaim
impl UnwindSafe for JobClaim
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