[][src]Struct koibumi_core::message::Inv

pub struct Inv { /* fields omitted */ }

An "inv" message that is used by a node to advertise what objects it has.

Implementations

impl Inv[src]

pub const MAX_COUNT_FIXED: usize[src]

The maximum count of the elements of a list the message can convey. This is the fixed value due to a historical bug of PyBitmessage.

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

Constructs an "inv" message from a list of inventory hashes.

Trait Implementations

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

impl Clone for Inv[src]

impl Debug for Inv[src]

impl Eq for Inv[src]

impl Hash for Inv[src]

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

type Output = [InvHash]

The returned type after indexing.

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

type Output = [InvHash]

The returned type after indexing.

impl Index<RangeFull> for Inv[src]

type Output = [InvHash]

The returned type after indexing.

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

type Output = [InvHash]

The returned type after indexing.

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

type Output = [InvHash]

The returned type after indexing.

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

type Output = [InvHash]

The returned type after indexing.

impl Index<usize> for Inv[src]

type Output = InvHash

The returned type after indexing.

impl Message for Inv[src]

impl PartialEq<Inv> for Inv[src]

impl ReadFrom for Inv[src]

impl StructuralEq for Inv[src]

impl StructuralPartialEq for Inv[src]

impl WriteTo for Inv[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.