[][src]Struct koibumi_core::message::Getdata

pub struct Getdata { /* fields omitted */ }

A "getdata" message that is issued when a node want to retrieve objects.

Implementations

impl Getdata[src]

pub const MAX_COUNT: usize[src]

The maximum count of the elements of a list the message can convey.

pub fn new(list: Vec<InvHash>) -> Result<Self, TooLongError>[src]

Constructs a "getdata" message from a list of inventory hashes.

Trait Implementations

impl AsRef<[InvHash]> for Getdata[src]

impl Clone for Getdata[src]

impl Debug for Getdata[src]

impl Eq for Getdata[src]

impl Hash for Getdata[src]

impl Index<Range<usize>> for Getdata[src]

type Output = [InvHash]

The returned type after indexing.

impl Index<RangeFrom<usize>> for Getdata[src]

type Output = [InvHash]

The returned type after indexing.

impl Index<RangeFull> for Getdata[src]

type Output = [InvHash]

The returned type after indexing.

impl Index<RangeInclusive<usize>> for Getdata[src]

type Output = [InvHash]

The returned type after indexing.

impl Index<RangeTo<usize>> for Getdata[src]

type Output = [InvHash]

The returned type after indexing.

impl Index<RangeToInclusive<usize>> for Getdata[src]

type Output = [InvHash]

The returned type after indexing.

impl Index<usize> for Getdata[src]

type Output = InvHash

The returned type after indexing.

impl Message for Getdata[src]

impl PartialEq<Getdata> for Getdata[src]

impl ReadFrom for Getdata[src]

impl StructuralEq for Getdata[src]

impl StructuralPartialEq for Getdata[src]

impl WriteTo for Getdata[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Pack for T where
    T: WriteTo + Message
[src]

impl<T> ReadFromExact for T where
    T: ReadFrom
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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.