pub struct Durability(/* private fields */);Expand description
How the host makes what runners wrote durable, and tells whether it did: sync(2) and the systemd journal on the
host (boots), a counter and a script in tests.
Implementations§
Source§impl Durability
impl Durability
Sourcepub fn new(
flush: impl Fn() + Send + Sync + 'static,
ended_synced: impl Fn(&str) -> bool + Send + Sync + 'static,
) -> Durability
pub fn new( flush: impl Fn() + Send + Sync + 'static, ended_synced: impl Fn(&str) -> bool + Send + Sync + 'static, ) -> Durability
flush writes what the kernel holds in memory to disk; ended_synced says whether the boot of the boot ID it
is given ended in an orderly shutdown whose final sync finished.
Sourcepub fn host() -> Durability
pub fn host() -> Durability
The host’s sync(2), which every user may call, and its journal (boots::ended_synced).
Trait Implementations§
Source§impl Clone for Durability
impl Clone for Durability
Auto Trait Implementations§
impl !RefUnwindSafe for Durability
impl !UnwindSafe for Durability
impl Forget for Durability
impl Freeze for Durability
impl Move for Durability
impl Send for Durability
impl Sync for Durability
impl Unpin for Durability
impl UnsafeUnpin for Durability
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