[][src]Struct hycon_rust::serialization::network::BlockTxs

pub struct BlockTxs {
    pub hash: Vec<u8>,
    pub txs: RepeatedField<Tx>,
    // some fields omitted
}

Fields

hash: Vec<u8>txs: RepeatedField<Tx>

Methods

impl BlockTxs[src]

pub fn new() -> BlockTxs[src]

pub fn clear_hash(&mut self)[src]

pub fn set_hash(&mut self, v: Vec<u8>)[src]

pub fn mut_hash(&mut self) -> &mut Vec<u8>[src]

pub fn take_hash(&mut self) -> Vec<u8>[src]

pub fn get_hash(&self) -> &[u8][src]

pub fn clear_txs(&mut self)[src]

pub fn set_txs(&mut self, v: RepeatedField<Tx>)[src]

pub fn mut_txs(&mut self) -> &mut RepeatedField<Tx>[src]

pub fn take_txs(&mut self) -> RepeatedField<Tx>[src]

pub fn get_txs(&self) -> &[Tx][src]

Trait Implementations

impl Default for BlockTxs[src]

impl Clone for BlockTxs[src]

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

Performs copy-assignment from source. Read more

impl PartialEq<BlockTxs> for BlockTxs[src]

impl Debug for BlockTxs[src]

impl Message for BlockTxs[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 BlockTxs[src]

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

impl Sync for BlockTxs

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