Struct casper_node::types::Block[][src]

pub struct Block { /* fields omitted */ }

A proto-block after execution, with the resulting post-state-hash. This is the core component of the Casper linear blockchain.

Implementations

impl Block[src]

pub fn hash(&self) -> &BlockHash[src]

The hash of this block’s header.

pub fn deploy_hashes(&self) -> &Vec<DeployHash>[src]

The deploy hashes included in this block.

pub fn transfer_hashes(&self) -> &Vec<DeployHash>[src]

The list of transfer hashes included in the block.

pub fn height(&self) -> u64[src]

The height of a block.

pub fn protocol_version(&self) -> ProtocolVersion[src]

The protocol version of the block.

pub fn parent(&self) -> Option<&BlockHash>[src]

Returns the hash of the parent block. If the block is the first block in the linear chain returns None.

pub fn timestamp(&self) -> Timestamp[src]

Returns the timestamp of the block.

pub fn verify(&self) -> Result<(), BlockValidationError>[src]

Check the integrity of a block by hashing its body and header

Trait Implementations

impl Clone for Block[src]

impl DataSize for Block[src]

impl Debug for Block[src]

impl<'de> Deserialize<'de> for Block[src]

impl Display for Block[src]

impl DocExample for Block[src]

impl Eq for Block[src]

impl From<JsonBlock> for Block[src]

impl FromBytes for Block[src]

impl Hash for Block[src]

impl Item for Block[src]

type Id = BlockHash

The type of ID of the item.

impl Ord for Block[src]

impl PartialEq<Block> for Block[src]

impl PartialOrd<Block> for Block[src]

impl Serialize for Block[src]

impl StructuralEq for Block[src]

impl StructuralPartialEq for Block[src]

impl ToBytes for Block[src]

Auto Trait Implementations

impl RefUnwindSafe for Block

impl Send for Block

impl Sync for Block

impl Unpin for Block

impl UnwindSafe for Block

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> Conv for T

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<T> DynClone for T where
    T: Clone
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]