pub struct Leases { /* private fields */ }Expand description
Which runner held which address when.
Implementations§
Source§impl Leases
impl Leases
Sourcepub fn start(&mut self, address: &str, runner: &str, from: u64)
pub fn start(&mut self, address: &str, runner: &str, from: u64)
A runner’s container got address at from (ms).
Sourcepub fn end(&mut self, runner: &str, until: u64)
pub fn end(&mut self, runner: &str, until: u64)
A runner’s container was removed at until (ms).
Sourcepub fn forget_before(&mut self, before: u64)
pub fn forget_before(&mut self, before: u64)
Forgets leases that ended before before (ms): the log was read past them.
Sourcepub fn holder(&self, address: &str, at: u64) -> Option<&str>
pub fn holder(&self, address: &str, at: u64) -> Option<&str>
The runner that held the address at at (ms).
Sourcepub fn attribute(
&self,
log: &str,
after: MirrorPosition,
) -> (Vec<(String, u64)>, MirrorPosition)
pub fn attribute( &self, log: &str, after: MirrorPosition, ) -> (Vec<(String, u64)>, MirrorPosition)
Bytes per runner in log lines after after, and where the lines read end.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Leases
impl RefUnwindSafe for Leases
impl Send for Leases
impl Sync for Leases
impl Unpin for Leases
impl UnsafeUnpin for Leases
impl UnwindSafe for Leases
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