[−][src]Struct koibumi_core::message::Addr
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]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Index<Range<usize>> for Addr
[src]
type Output = [NetAddr]
The returned type after indexing.
pub fn index(&self, index: Range<usize>) -> &[NetAddr]
[src]
impl Index<RangeFrom<usize>> for Addr
[src]
type Output = [NetAddr]
The returned type after indexing.
pub fn index(&self, index: RangeFrom<usize>) -> &[NetAddr]
[src]
impl Index<RangeFull> for Addr
[src]
type Output = [NetAddr]
The returned type after indexing.
pub fn index(&self, index: RangeFull) -> &[NetAddr]
[src]
impl Index<RangeInclusive<usize>> for Addr
[src]
type Output = [NetAddr]
The returned type after indexing.
pub fn index(&self, index: RangeInclusive<usize>) -> &[NetAddr]
[src]
impl Index<RangeTo<usize>> for Addr
[src]
type Output = [NetAddr]
The returned type after indexing.
pub fn index(&self, index: RangeTo<usize>) -> &[NetAddr]
[src]
impl Index<RangeToInclusive<usize>> for Addr
[src]
type Output = [NetAddr]
The returned type after indexing.
pub fn index(&self, index: RangeToInclusive<usize>) -> &[NetAddr]
[src]
impl Index<usize> for Addr
[src]
type Output = NetAddr
The returned type after indexing.
pub fn index(&self, idx: usize) -> &NetAddr
[src]
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
impl RefUnwindSafe for Addr
[src]
impl Send for Addr
[src]
impl Sync for Addr
[src]
impl Unpin for Addr
[src]
impl UnwindSafe for Addr
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pack for T where
T: WriteTo + Message,
[src]
T: WriteTo + Message,
impl<T> ReadFromExact for T where
T: ReadFrom,
[src]
T: ReadFrom,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,