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

pub struct BlockInfoConfig {
    pub latest_block: u64,
    pub oldest_block: u64,
    pub target_count: u64,
    pub sync_tolerance: u64,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

latest_block: u64oldest_block: u64target_count: u64sync_tolerance: u64unknown_fields: UnknownFieldscached_size: CachedSize

Methods

impl BlockInfoConfig[src]

pub fn new() -> BlockInfoConfig[src]

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

pub fn clear_latest_block(&mut self)[src]

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

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

pub fn clear_oldest_block(&mut self)[src]

pub fn set_oldest_block(&mut self, v: u64)[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 BlockInfoConfig[src]

impl Default for BlockInfoConfig[src]

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

impl PartialEq<BlockInfoConfig> for BlockInfoConfig[src]

impl Debug for BlockInfoConfig[src]

impl Message for BlockInfoConfig[src]

impl Clear for BlockInfoConfig[src]

impl ProtobufValue for BlockInfoConfig[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]