pub struct Durable<V> {
pub state: State<V>,
pub decision: Option<V>,
}Expand description
Everything this instance keeps durably, as one rewritten value.
Fields§
§state: State<V>(valts, val).
decision: Option<V>epochdecision, once this epoch has decided.
Trait Implementations§
Source§impl<'de, V> Deserialize<'de> for Durable<V>where
V: Deserialize<'de>,
impl<'de, V> Deserialize<'de> for Durable<V>where
V: Deserialize<'de>,
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<V: Eq> Eq for Durable<V>
Source§impl<V: PartialEq> PartialEq for Durable<V>
impl<V: PartialEq> PartialEq for Durable<V>
impl<V: PartialEq> StructuralPartialEq for Durable<V>
Auto Trait Implementations§
impl<V> Freeze for Durable<V>where
V: Freeze,
impl<V> RefUnwindSafe for Durable<V>where
V: RefUnwindSafe,
impl<V> Send for Durable<V>where
V: Send,
impl<V> Sync for Durable<V>where
V: Sync,
impl<V> Unpin for Durable<V>where
V: Unpin,
impl<V> UnsafeUnpin for Durable<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for Durable<V>where
V: UnwindSafe,
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