Struct primitives::validator::RejectState
source · pub struct RejectState<S: BalancesState> {
pub reason: String,
pub state_root: String,
pub signature: String,
pub balances: Option<Balances<S>>,
pub timestamp: DateTime<Utc>,
}
Expand description
Generated by the Channel.follower
on:
- Payout mismatch in the
NewState
between earner & spenders (i.e. their sum is not equal) - Invalid
NewState
root hash. - Failed verification of the expected signer (
Channel.leader
) with the proposedNewState
signature and state root. - Invalid state transition (balances should always go up)
NewState
is unsignable because the health is below the [Config.health_unsignable_promilles
]
Fields
reason: String
state_root: String
signature: String
balances: Option<Balances<S>>
timestamp: DateTime<Utc>
The timestamp when the NewState
was rejected.
Trait Implementations
sourceimpl<S: Clone + BalancesState> Clone for RejectState<S>
impl<S: Clone + BalancesState> Clone for RejectState<S>
sourcefn clone(&self) -> RejectState<S>
fn clone(&self) -> RejectState<S>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<S: Debug + BalancesState> Debug for RejectState<S>
impl<S: Debug + BalancesState> Debug for RejectState<S>
sourceimpl<'de, S: BalancesState> Deserialize<'de> for RejectState<S>where
S: BalancesState,
impl<'de, S: BalancesState> Deserialize<'de> for RejectState<S>where
S: BalancesState,
sourcefn 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
sourceimpl<S: BalancesState> From<RejectState<S>> for MessageTypes
impl<S: BalancesState> From<RejectState<S>> for MessageTypes
sourcefn from(reject_state: RejectState<S>) -> Self
fn from(reject_state: RejectState<S>) -> Self
Converts to this type from the input type.
sourceimpl<S: PartialEq + BalancesState> PartialEq<RejectState<S>> for RejectState<S>
impl<S: PartialEq + BalancesState> PartialEq<RejectState<S>> for RejectState<S>
sourcefn eq(&self, other: &RejectState<S>) -> bool
fn eq(&self, other: &RejectState<S>) -> bool
sourceimpl<S: BalancesState> Serialize for RejectState<S>where
S: BalancesState,
impl<S: BalancesState> Serialize for RejectState<S>where
S: BalancesState,
sourceimpl<S: BalancesState> TryFrom<MessageTypes> for RejectState<S>
impl<S: BalancesState> TryFrom<MessageTypes> for RejectState<S>
type Error = MessageError<RejectState<S>>
type Error = MessageError<RejectState<S>>
The type returned in the event of a conversion error.
sourcefn try_from(value: MessageTypes) -> Result<Self, Self::Error>
fn try_from(value: MessageTypes) -> Result<Self, Self::Error>
Performs the conversion.
impl<S: Eq + BalancesState> Eq for RejectState<S>
impl<S: BalancesState> StructuralEq for RejectState<S>
impl<S: BalancesState> StructuralPartialEq for RejectState<S>
impl<S: BalancesState> Type for RejectState<S>
Auto Trait Implementations
impl<S> RefUnwindSafe for RejectState<S>where
S: RefUnwindSafe,
impl<S> Send for RejectState<S>where
S: Send,
impl<S> Sync for RejectState<S>where
S: Sync,
impl<S> Unpin for RejectState<S>where
S: Unpin,
impl<S> UnwindSafe for RejectState<S>where
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more