Struct primitives::validator::messages::NewState
source · pub struct NewState<S: BalancesState> {
pub state_root: String,
pub signature: String,
pub balances: Balances<S>,
}
Expand description
Generated by the Channel.leader
on changed balances for the Channel
.
Fields
state_root: String
signature: String
balances: Balances<S>
Implementations
sourceimpl NewState<UncheckedState>
impl NewState<UncheckedState>
pub fn try_checked(self) -> Result<NewState<CheckedState>, Error>
Trait Implementations
sourceimpl<S: Clone + BalancesState> Clone for NewState<S>
impl<S: Clone + BalancesState> Clone for NewState<S>
sourceimpl<S: Debug + BalancesState> Debug for NewState<S>
impl<S: Debug + BalancesState> Debug for NewState<S>
sourceimpl<'de, S: BalancesState> Deserialize<'de> for NewState<S>where
S: BalancesState,
impl<'de, S: BalancesState> Deserialize<'de> for NewState<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<NewState<S>> for MessageTypes
impl<S: BalancesState> From<NewState<S>> for MessageTypes
sourceimpl<S: PartialEq + BalancesState> PartialEq<NewState<S>> for NewState<S>
impl<S: PartialEq + BalancesState> PartialEq<NewState<S>> for NewState<S>
sourceimpl<S: BalancesState> Serialize for NewState<S>where
S: BalancesState,
impl<S: BalancesState> Serialize for NewState<S>where
S: BalancesState,
sourceimpl<S: BalancesState> TryFrom<MessageTypes> for NewState<S>
impl<S: BalancesState> TryFrom<MessageTypes> for NewState<S>
type Error = MessageError<NewState<S>>
type Error = MessageError<NewState<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 NewState<S>
impl<S: BalancesState> StructuralEq for NewState<S>
impl<S: BalancesState> StructuralPartialEq for NewState<S>
impl<S: BalancesState> Type for NewState<S>
Auto Trait Implementations
impl<S> RefUnwindSafe for NewState<S>where
S: RefUnwindSafe,
impl<S> Send for NewState<S>where
S: Send,
impl<S> Sync for NewState<S>where
S: Sync,
impl<S> Unpin for NewState<S>where
S: Unpin,
impl<S> UnwindSafe for NewState<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