pub struct RelayState {
pub generation: GenerationStage,
pub consumption: ConsumptionMode,
}Expand description
A complete logical snapshot. Each setting is independent.
Fields§
§generation: GenerationStageGeneration setting on S1, S2 and W3.
consumption: ConsumptionModeConsumption setting on W4.
Implementations§
Source§impl RelayState
impl RelayState
Sourcepub const fn new(
generation: GenerationStage,
consumption: ConsumptionMode,
) -> Self
pub const fn new( generation: GenerationStage, consumption: ConsumptionMode, ) -> Self
Initialize both settings explicitly.
Sourcepub const fn contacts(self) -> RelayContacts
pub const fn contacts(self) -> RelayContacts
Encode all four desired logical contact signals in one snapshot.
Trait Implementations§
Source§impl Clone for RelayState
impl Clone for RelayState
impl Copy for RelayState
Source§impl Debug for RelayState
impl Debug for RelayState
impl Eq for RelayState
Source§impl PartialEq for RelayState
impl PartialEq for RelayState
impl StructuralPartialEq for RelayState
Auto Trait Implementations§
impl Freeze for RelayState
impl RefUnwindSafe for RelayState
impl Send for RelayState
impl Sync for RelayState
impl Unpin for RelayState
impl UnsafeUnpin for RelayState
impl UnwindSafe for RelayState
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