pub struct StepRequest { /* private fields */ }Expand description
Representation of a step request.
Implementations§
Source§impl StepRequest
impl StepRequest
Sourcepub fn new(
config: Config,
state_hash: Digest,
protocol_version: ProtocolVersion,
slash_items: Vec<SlashItem>,
evict_items: Vec<EvictItem>,
next_era_id: EraId,
era_end_timestamp_millis: u64,
) -> Self
pub fn new( config: Config, state_hash: Digest, protocol_version: ProtocolVersion, slash_items: Vec<SlashItem>, evict_items: Vec<EvictItem>, next_era_id: EraId, era_end_timestamp_millis: u64, ) -> Self
Creates new step request.
Sourcepub fn transfer_config(&self) -> TransferConfig
pub fn transfer_config(&self) -> TransferConfig
Returns the transfer config.
Sourcepub fn slashed_validators(&self) -> Vec<PublicKey>
pub fn slashed_validators(&self) -> Vec<PublicKey>
Returns list of slashed validators.
Sourcepub fn state_hash(&self) -> Digest
pub fn state_hash(&self) -> Digest
Returns pre_state_hash.
Sourcepub fn protocol_version(&self) -> ProtocolVersion
pub fn protocol_version(&self) -> ProtocolVersion
Returns protocol_version.
Sourcepub fn slash_items(&self) -> &Vec<SlashItem>
pub fn slash_items(&self) -> &Vec<SlashItem>
Returns slash_items.
Sourcepub fn evict_items(&self) -> &Vec<EvictItem>
pub fn evict_items(&self) -> &Vec<EvictItem>
Returns evict_items.
Sourcepub fn next_era_id(&self) -> EraId
pub fn next_era_id(&self) -> EraId
Returns next_era_id.
Sourcepub fn era_end_timestamp_millis(&self) -> u64
pub fn era_end_timestamp_millis(&self) -> u64
Returns era_end_timestamp_millis.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StepRequest
impl RefUnwindSafe for StepRequest
impl Send for StepRequest
impl Sync for StepRequest
impl Unpin for StepRequest
impl UnwindSafe for StepRequest
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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