pub struct LeaseDecl {
pub name: Ident,
pub key_type: Ident,
pub slots: u32,
pub ttl_seconds: u64,
pub shared: bool,
pub span: SourceSpan,
}Expand description
Coordination resources (spec/coordination.md): a closed family of shared,
workspace-scoped resources with typed keys, atomic branchable operations,
and mandatory bounds (ttl/retain/cap+reset).
Fields§
§name: Ident§key_type: Ident§slots: u32§ttl_seconds: u64§span: SourceSpanTrait Implementations§
impl Eq for LeaseDecl
impl StructuralPartialEq for LeaseDecl
Auto Trait Implementations§
impl Freeze for LeaseDecl
impl RefUnwindSafe for LeaseDecl
impl Send for LeaseDecl
impl Sync for LeaseDecl
impl Unpin for LeaseDecl
impl UnsafeUnpin for LeaseDecl
impl UnwindSafe for LeaseDecl
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