[][src]Struct koibumi_core::message::Addr

pub struct Addr { /* fields omitted */ }

An "addr" message that consists of a list of NetAddr.

Implementations

impl Addr[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<NetAddr>) -> Result<Self, TooLongError>[src]

Constructs an "addr" message from a list of NetAddr.

Trait Implementations

impl AsRef<[NetAddr]> for Addr[src]

impl Clone for Addr[src]

impl Debug for Addr[src]

impl Eq for Addr[src]

impl Hash for Addr[src]

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

type Output = [NetAddr]

The returned type after indexing.

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

type Output = [NetAddr]

The returned type after indexing.

impl Index<RangeFull> for Addr[src]

type Output = [NetAddr]

The returned type after indexing.

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

type Output = [NetAddr]

The returned type after indexing.

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

type Output = [NetAddr]

The returned type after indexing.

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

type Output = [NetAddr]

The returned type after indexing.

impl Index<usize> for Addr[src]

type Output = NetAddr

The returned type after indexing.

impl Message for Addr[src]

impl PartialEq<Addr> for Addr[src]

impl ReadFrom for Addr[src]

impl StructuralEq for Addr[src]

impl StructuralPartialEq for Addr[src]

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