[][src]Struct hycon_rust::serialization::block::BlockDB

pub struct BlockDB {
    pub height: u32,
    pub header: SingularPtrField<BlockHeader>,
    pub fileNumber: u32,
    pub offset: u64,
    pub length: u32,
    pub tEMA: f64,
    pub pEMA: f64,
    pub nextDifficulty: f64,
    pub totalWork: f64,
    pub status: u32,
    // some fields omitted
}

Fields

height: u32header: SingularPtrField<BlockHeader>fileNumber: u32offset: u64length: u32tEMA: f64pEMA: f64nextDifficulty: f64totalWork: f64status: u32

Methods

impl BlockDB[src]

pub fn new() -> BlockDB[src]

pub fn clear_height(&mut self)[src]

pub fn set_height(&mut self, v: u32)[src]

pub fn get_height(&self) -> u32[src]

pub fn clear_header(&mut self)[src]

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

pub fn set_header(&mut self, v: BlockHeader)[src]

pub fn mut_header(&mut self) -> &mut BlockHeader[src]

pub fn take_header(&mut self) -> BlockHeader[src]

pub fn get_header(&self) -> &BlockHeader[src]

pub fn clear_fileNumber(&mut self)[src]

pub fn set_fileNumber(&mut self, v: u32)[src]

pub fn get_fileNumber(&self) -> u32[src]

pub fn clear_offset(&mut self)[src]

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

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

pub fn clear_length(&mut self)[src]

pub fn set_length(&mut self, v: u32)[src]

pub fn get_length(&self) -> u32[src]

pub fn clear_tEMA(&mut self)[src]

pub fn set_tEMA(&mut self, v: f64)[src]

pub fn get_tEMA(&self) -> f64[src]

pub fn clear_pEMA(&mut self)[src]

pub fn set_pEMA(&mut self, v: f64)[src]

pub fn get_pEMA(&self) -> f64[src]

pub fn clear_nextDifficulty(&mut self)[src]

pub fn set_nextDifficulty(&mut self, v: f64)[src]

pub fn get_nextDifficulty(&self) -> f64[src]

pub fn clear_totalWork(&mut self)[src]

pub fn set_totalWork(&mut self, v: f64)[src]

pub fn get_totalWork(&self) -> f64[src]

pub fn clear_status(&mut self)[src]

pub fn set_status(&mut self, v: u32)[src]

pub fn get_status(&self) -> u32[src]

Trait Implementations

impl Default for BlockDB[src]

impl Clone for BlockDB[src]

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

Performs copy-assignment from source. Read more

impl PartialEq<BlockDB> for BlockDB[src]

impl Debug for BlockDB[src]

impl Message for BlockDB[src]

fn write_to(&self, os: &mut CodedOutputStream) -> Result<(), ProtobufError>

Write the message to the stream. Read more

fn write_length_delimited_to(
    &self,
    os: &mut CodedOutputStream
) -> Result<(), ProtobufError>

Write the message to the stream prepending the message with message length encoded as varint. Read more

fn write_length_delimited_to_vec(
    &self,
    vec: &mut Vec<u8>
) -> Result<(), ProtobufError>

Write the message to the vec, prepend the message with message length encoded as varint. Read more

fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>

Update this message object with fields read from given stream.

fn check_initialized(&self) -> Result<(), ProtobufError>

Check if all required fields of this object are initialized.

fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>

Write the message to the writer.

fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>

Write the message to bytes vec.

fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>

Write the message to bytes vec.

fn write_length_delimited_to_writer(
    &self,
    w: &mut dyn Write
) -> Result<(), ProtobufError>

Write the message to the writer, prepend the message with message length encoded as varint. Read more

fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>

Write the message to the bytes vec, prepend the message with message length encoded as varint. Read more

fn type_id(&self) -> TypeId

Get type id for downcasting.

impl Clear for BlockDB[src]

impl ProtobufValue for BlockDB[src]

fn as_any(&self) -> &(dyn Any + 'static)

fn is_non_zero(&self) -> bool

fn as_ref_copy(&self) -> ProtobufValueRef<'static>

Auto Trait Implementations

impl Send for BlockDB

impl Sync for BlockDB

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self