pub struct WaitEntry {
pub agent_id: String,
pub priority: u8,
pub registered_at: Instant,
pub auto_acquire: bool,
/* private fields */
}Expand description
Entry in the wait queue
Fields§
§agent_id: StringAgent waiting for the resource
priority: u8Priority (0 = highest, higher numbers = lower priority)
registered_at: InstantWhen the agent registered in the queue
auto_acquire: boolWhether to automatically acquire when reaching front
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WaitEntry
impl !RefUnwindSafe for WaitEntry
impl Send for WaitEntry
impl Sync for WaitEntry
impl Unpin for WaitEntry
impl UnsafeUnpin for WaitEntry
impl !UnwindSafe for WaitEntry
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