pub struct StoreFile {
pub path: Option<String>,
pub min_free: Option<String>,
}Expand description
store.file. The only setting is where the state lives; the adapter needs
nothing else, so the block itself is optional — kind: file with no block
resolves the root from the environment (file_store_root).
Fields§
§path: Option<String>§min_free: Option<String>Shed new work when the store’s filesystem has less than this free
(256MB, 1.5GiB, plain bytes; "0" disables). Warn at twice it.
Default 256MB: a checkpoint failure at ENOSPC HALTS the daemon, so with
under a quarter-gig free, refusing new runs while draining the current
ones is almost certainly what the operator would have chosen — and the
alternative was choosing nothing and dying mid-write.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StoreFile
impl<'de> Deserialize<'de> for StoreFile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for StoreFile
Auto Trait Implementations§
impl Freeze for StoreFile
impl RefUnwindSafe for StoreFile
impl Send for StoreFile
impl Sync for StoreFile
impl Unpin for StoreFile
impl UnsafeUnpin for StoreFile
impl UnwindSafe for StoreFile
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