pub struct State {
pub instance: u32,
pub revision: u32,
pub floor_s: u16,
pub would_be: bool,
pub pending: Option<Pending>,
pub last: Option<Last>,
pub desired: Option<Desired>,
pub groups: BTreeMap<String, GroupState>,
}Expand description
The record, as config.v2 reads one (§2.3): the fixtures’ state.
Fields§
§instance: u32The instance number: the run the instance first wrote under.
revision: u32§floor_s: u16§would_be: boolSet only in a dry run’s reply (§2.9).
pending: Option<Pending>§last: Option<Last>§desired: Option<Desired>§groups: BTreeMap<String, GroupState>By name. A group an earlier revision’s writer did not write is absent.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for State
impl<'de> Deserialize<'de> for State
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 Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Forget for State
impl Freeze for Statewhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, GroupState> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, GroupState)>>: Freeze,
impl Move for State
impl RefUnwindSafe for State
impl Send for Statewhere
RawVecInner: Send,
NodeRef<Owned, String, GroupState, LeafOrInternal>: Send,
BoxRaw<(String, GroupState)>: Send,
impl Sync for Statewhere
RawVecInner: Sync,
NodeRef<Owned, String, GroupState, LeafOrInternal>: Sync,
BoxRaw<(String, GroupState)>: Sync,
impl Unpin for State
impl UnsafeUnpin for Statewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, GroupState> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, GroupState)>>: UnsafeUnpin,
impl UnwindSafe for State
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more