pub struct OwnedBlockContext {
pub height: Height,
pub view: ViewNumber,
pub proposer: ValidatorId,
pub epoch: EpochNumber,
pub epoch_start_view: ViewNumber,
pub validator_set: ValidatorSet,
}Expand description
Owned version of BlockContext for cross-process IPC.
BlockContext<'a> borrows the ValidatorSet, which cannot be sent across
process boundaries. This type owns all its data and is serializable.
Fields§
§height: Height§view: ViewNumber§proposer: ValidatorId§epoch: EpochNumber§epoch_start_view: ViewNumber§validator_set: ValidatorSetTrait Implementations§
Source§impl Clone for OwnedBlockContext
impl Clone for OwnedBlockContext
Source§fn clone(&self) -> OwnedBlockContext
fn clone(&self) -> OwnedBlockContext
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 OwnedBlockContext
impl Debug for OwnedBlockContext
Source§impl<'de> Deserialize<'de> for OwnedBlockContext
impl<'de> Deserialize<'de> for OwnedBlockContext
Source§fn 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
Source§impl From<&BlockContext<'_>> for OwnedBlockContext
impl From<&BlockContext<'_>> for OwnedBlockContext
Source§fn from(ctx: &BlockContext<'_>) -> Self
fn from(ctx: &BlockContext<'_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OwnedBlockContext
impl RefUnwindSafe for OwnedBlockContext
impl Send for OwnedBlockContext
impl Sync for OwnedBlockContext
impl Unpin for OwnedBlockContext
impl UnsafeUnpin for OwnedBlockContext
impl UnwindSafe for OwnedBlockContext
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