Skip to main content

Durability

Struct Durability 

Source
pub struct Durability {
    pub tier: DurabilityTier,
    pub engine: Option<DurabilityEngine>,
    pub store: Option<String>,
    pub subjects: Vec<String>,
    pub rpo_seconds: Option<u32>,
    pub state_mb: Option<u32>,
}
Expand description

A parsed yah.durability.* declaration. See WorkloadSpec::durability.

Fields§

§tier: DurabilityTier§engine: Option<DurabilityEngine>

Which engine’s tier vocabulary this is. Some exactly when DurabilityTier::ships_bytes — enforced by the accessor (R850-F1).

§store: Option<String>

Object-store URL the copy lives at. Some exactly when DurabilityTier::ships_bytes — enforced by the accessor.

§subjects: Vec<String>

Volume-relative paths of the database files this tier covers, in declaration order. Non-empty exactly when DurabilityTier::ships_bytes — enforced by the accessor (R850-F1).

Volume-relative, never absolute: the same string is joined onto the container’s mount target when read as documentation and onto /var/lib/yah/kamaji/volumes/<name> when a hydrate writes it. Each is also the object-store key suffix under Self::store, so the layout an operator sees in the bucket mirrors the layout on the volume.

§rpo_seconds: Option<u32>

Declared recovery-point objective in seconds. DurabilityTier::Stream only; None there means turso_backup::stream::DEFAULT_RPO_TARGET.

§state_mb: Option<u32>

Expected steady-state size of this workload’s state, in MiB — the input a cold-start-from-object-store estimate needs and cannot get anywhere else. resources.ephemeral_storage_mb is not it: that caps the writable layer and tmpfs, and a named volume is neither.

Declared, never measured. Any recovery-time figure derived from it inherits that, and must say so at the point it is printed.

Trait Implementations§

Source§

impl Clone for Durability

Source§

fn clone(&self) -> Durability

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Durability

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Durability

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for Durability

Source§

impl PartialEq for Durability

Source§

fn eq(&self, other: &Durability) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Durability

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Durability

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.