[][src]Struct buffett_core::entry::Entry

pub struct Entry {
    pub num_hashes: u64,
    pub id: Hash,
    pub transactions: Vec<Transaction>,
}

Fields

num_hashes: u64id: Hashtransactions: Vec<Transaction>

Methods

impl Entry[src]

pub fn new(
    start_hash: &Hash,
    num_hashes: u64,
    transactions: Vec<Transaction>
) -> Self
[src]

pub fn to_blob(
    &self,
    idx: Option<u64>,
    id: Option<Pubkey>,
    addr: Option<&SocketAddr>
) -> SharedBlob
[src]

pub fn will_fit(transactions: Vec<Transaction>) -> bool[src]

pub fn num_will_fit(transactions: &[Transaction]) -> usize[src]

pub fn new_mut(
    start_hash: &mut Hash,
    num_hashes: &mut u64,
    transactions: Vec<Transaction>
) -> Self
[src]

pub fn new_tick(num_hashes: u64, id: &Hash) -> Self[src]

pub fn verify(&self, start_hash: &Hash) -> bool[src]

Trait Implementations

impl Eq for Entry[src]

impl PartialEq<Entry> for Entry[src]

impl Clone for Entry[src]

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

Performs copy-assignment from source. Read more

impl Debug for Entry[src]

impl Serialize for Entry[src]

impl<'de> Deserialize<'de> for Entry[src]

Auto Trait Implementations

impl Send for Entry

impl Sync for Entry

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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<T> Same<T> for T

type Output = T

Should always be Self

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.