[][src]Struct sawtooth_sdk::messages::block_info::BlockInfoTxn

pub struct BlockInfoTxn {
    pub block: SingularPtrField<BlockInfo>,
    pub target_count: u64,
    pub sync_tolerance: u64,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

block: SingularPtrField<BlockInfo>target_count: u64sync_tolerance: u64unknown_fields: UnknownFieldscached_size: CachedSize

Methods

impl BlockInfoTxn[src]

pub fn new() -> BlockInfoTxn[src]

pub fn get_block(&self) -> &BlockInfo[src]

pub fn clear_block(&mut self)[src]

pub fn has_block(&self) -> bool[src]

pub fn set_block(&mut self, v: BlockInfo)[src]

pub fn mut_block(&mut self) -> &mut BlockInfo[src]

pub fn take_block(&mut self) -> BlockInfo[src]

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

pub fn clear_target_count(&mut self)[src]

pub fn set_target_count(&mut self, v: u64)[src]

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

pub fn clear_sync_tolerance(&mut self)[src]

pub fn set_sync_tolerance(&mut self, v: u64)[src]

Trait Implementations

impl Clone for BlockInfoTxn[src]

impl Default for BlockInfoTxn[src]

impl<'a> Default for &'a BlockInfoTxn[src]

impl PartialEq<BlockInfoTxn> for BlockInfoTxn[src]

impl Debug for BlockInfoTxn[src]

impl Message for BlockInfoTxn[src]

impl Clear for BlockInfoTxn[src]

impl ProtobufValue for BlockInfoTxn[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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