[][src]Struct beacon::types::UnsealedBeaconBlock

pub struct UnsealedBeaconBlock<C: Config> {
    pub slot: Uint,
    pub parent_root: H256,
    pub state_root: H256,
    pub body: BeaconBlockBody<C>,
}

Unsealed Beacon block.

Fields

slot: Uint

Slot of the block.

parent_root: H256

Previous block root.

state_root: H256

State root.

body: BeaconBlockBody<C>

Body.

Methods

impl<C: Config> UnsealedBeaconBlock<C>[src]

pub fn fake_seal(self) -> BeaconBlock<C>[src]

Fake sealing a beacon block, with empty signature.

Trait Implementations

impl<C: Config> Block for UnsealedBeaconBlock<C>[src]

type Config = C

Configuration of the block.

impl<C: Clone + Config> Clone for UnsealedBeaconBlock<C>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<C: Default + Config> Default for UnsealedBeaconBlock<C>[src]

impl<'a, C: Config, T: Block<Config = C>> From<&'a T> for UnsealedBeaconBlock<C>[src]

impl<C: PartialEq + Config> PartialEq<UnsealedBeaconBlock<C>> for UnsealedBeaconBlock<C>[src]

impl<C: Eq + Config> Eq for UnsealedBeaconBlock<C>[src]

impl<C: Debug + Config> Debug for UnsealedBeaconBlock<C>[src]

impl<C: Config> Serialize for UnsealedBeaconBlock<C> where
    C: Config + Serialize + Clone + DeserializeOwned + 'static, 
[src]

impl<'de, C: Config> Deserialize<'de> for UnsealedBeaconBlock<C> where
    C: Config + Serialize + Clone + DeserializeOwned + 'static, 
[src]

impl<C: Config> Encode for UnsealedBeaconBlock<C> where
    BeaconBlockBody<C>: Encode,
    BeaconBlockBody<C>: Encode
[src]

fn encode(&self) -> Vec<u8>[src]

Convert self to an owned vector.

fn using_encoded<R, F>(&self, f: F) -> R where
    F: FnOnce(&[u8]) -> R, 
[src]

Convert self to a slice and then invoke the given closure with it.

impl<C: Config> Decode for UnsealedBeaconBlock<C> where
    BeaconBlockBody<C>: Decode,
    BeaconBlockBody<C>: Decode
[src]

impl<C: Config> Codec for UnsealedBeaconBlock<C> where
    Uint: Codec,
    H256: Codec,
    H256: Codec,
    BeaconBlockBody<C>: Codec
[src]

type Size = Add<<Uint as Codec>::Size, Add<<H256 as Codec>::Size, Add<<H256 as Codec>::Size, <BeaconBlockBody<C> as Codec>::Size>>>

Size of the current type, also indicates whether it is fixed-sized or variable-sized. Read more

impl<C: Config> Decode for UnsealedBeaconBlock<C> where
    Uint: Decode,
    H256: Decode,
    H256: Decode,
    BeaconBlockBody<C>: Decode
[src]

impl<C: Config> Encode for UnsealedBeaconBlock<C> where
    Uint: Encode,
    H256: Encode,
    H256: Encode,
    BeaconBlockBody<C>: Encode
[src]

fn encode(&self) -> Vec<u8>[src]

Convert self to an owned vector.

impl<C: Config> IntoTree for UnsealedBeaconBlock<C> where
    Uint: IntoTree,
    H256: IntoTree,
    H256: IntoTree,
    BeaconBlockBody<C>: IntoTree
[src]

impl<C: Config> FromTree for UnsealedBeaconBlock<C> where
    Uint: FromTree,
    H256: FromTree,
    H256: FromTree,
    BeaconBlockBody<C>: FromTree
[src]

Auto Trait Implementations

impl<C> Sync for UnsealedBeaconBlock<C> where
    <C as Config>::MaxAttestations: Sync,
    <C as Config>::MaxAttesterSlashings: Sync,
    <C as Config>::MaxDeposits: Sync,
    <C as Config>::MaxProposerSlashings: Sync,
    <C as Config>::MaxTransfers: Sync,
    <C as Config>::MaxValidatorsPerCommittee: Sync,
    <C as Config>::MaxVoluntaryExits: Sync

impl<C> Send for UnsealedBeaconBlock<C> where
    <C as Config>::MaxAttestations: Send,
    <C as Config>::MaxAttesterSlashings: Send,
    <C as Config>::MaxDeposits: Send,
    <C as Config>::MaxProposerSlashings: Send,
    <C as Config>::MaxTransfers: Send,
    <C as Config>::MaxValidatorsPerCommittee: Send,
    <C as Config>::MaxVoluntaryExits: Send

impl<C> Unpin for UnsealedBeaconBlock<C> where
    <C as Config>::MaxAttestations: Unpin,
    <C as Config>::MaxAttesterSlashings: Unpin,
    <C as Config>::MaxDeposits: Unpin,
    <C as Config>::MaxProposerSlashings: Unpin,
    <C as Config>::MaxTransfers: Unpin,
    <C as Config>::MaxValidatorsPerCommittee: Unpin,
    <C as Config>::MaxVoluntaryExits: Unpin

impl<C> RefUnwindSafe for UnsealedBeaconBlock<C> where
    <C as Config>::MaxAttestations: RefUnwindSafe,
    <C as Config>::MaxAttesterSlashings: RefUnwindSafe,
    <C as Config>::MaxDeposits: RefUnwindSafe,
    <C as Config>::MaxProposerSlashings: RefUnwindSafe,
    <C as Config>::MaxTransfers: RefUnwindSafe,
    <C as Config>::MaxValidatorsPerCommittee: RefUnwindSafe,
    <C as Config>::MaxVoluntaryExits: RefUnwindSafe

impl<C> UnwindSafe for UnsealedBeaconBlock<C> where
    <C as Config>::MaxAttestations: UnwindSafe,
    <C as Config>::MaxAttesterSlashings: UnwindSafe,
    <C as Config>::MaxDeposits: UnwindSafe,
    <C as Config>::MaxProposerSlashings: UnwindSafe,
    <C as Config>::MaxTransfers: UnwindSafe,
    <C as Config>::MaxValidatorsPerCommittee: UnwindSafe,
    <C as Config>::MaxVoluntaryExits: UnwindSafe

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<S> Codec for S where
    S: Encode + Decode
[src]

impl<T> KeyedVec for T where
    T: Codec
[src]

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

type Output = T

Should always be Self