pub struct CounterSigningAgentState { /* private fields */ }Expand description
Every countersigning agent must sign against their chain state. The chain must be frozen until each agent decides to sign or exit the session.
Implementations§
Source§impl CounterSigningAgentState
impl CounterSigningAgentState
Sourcepub fn new(
agent_index: u8,
chain_top: HoloHash<Action>,
action_seq: u32,
) -> CounterSigningAgentState
pub fn new( agent_index: u8, chain_top: HoloHash<Action>, action_seq: u32, ) -> CounterSigningAgentState
Constructor.
Sourcepub fn agent_index(&self) -> &u8
pub fn agent_index(&self) -> &u8
Agent index accessor.
Sourcepub fn action_seq(&self) -> &u32
pub fn action_seq(&self) -> &u32
Action seq accessor.
Trait Implementations§
Source§impl Clone for CounterSigningAgentState
impl Clone for CounterSigningAgentState
Source§fn clone(&self) -> CounterSigningAgentState
fn clone(&self) -> CounterSigningAgentState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CounterSigningAgentState
impl Debug for CounterSigningAgentState
Source§impl<'de> Deserialize<'de> for CounterSigningAgentState
impl<'de> Deserialize<'de> for CounterSigningAgentState
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CounterSigningAgentState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CounterSigningAgentState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for CounterSigningAgentState
impl Hash for CounterSigningAgentState
Source§impl PartialEq for CounterSigningAgentState
impl PartialEq for CounterSigningAgentState
Source§impl Serialize for CounterSigningAgentState
impl Serialize for CounterSigningAgentState
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for CounterSigningAgentState
impl StructuralPartialEq for CounterSigningAgentState
Auto Trait Implementations§
impl Freeze for CounterSigningAgentState
impl RefUnwindSafe for CounterSigningAgentState
impl Send for CounterSigningAgentState
impl Sync for CounterSigningAgentState
impl Unpin for CounterSigningAgentState
impl UnwindSafe for CounterSigningAgentState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.