[−][src]Struct tox_packet::friend_connection::ShareRelays
ShareRelays is a struct that holds at most 3 TCP relays in a PackedNode
format.
This packet is used to share relays between two friends.
Serialized form:
Length | Content |
---|---|
1 | 0x11 |
[0, 153] | Nodes in packed format |
Fields
relays: Vec<PackedNode>
TCP relays.
Implementations
impl ShareRelays
[src]
pub fn new(relays: Vec<PackedNode>) -> Self
[src]
Create new ShareRelays object
Trait Implementations
impl Clone for ShareRelays
[src]
pub fn clone(&self) -> ShareRelays
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ShareRelays
[src]
impl Eq for ShareRelays
[src]
impl FromBytes for ShareRelays
[src]
impl PartialEq<ShareRelays> for ShareRelays
[src]
pub fn eq(&self, other: &ShareRelays) -> bool
[src]
pub fn ne(&self, other: &ShareRelays) -> bool
[src]
impl StructuralEq for ShareRelays
[src]
impl StructuralPartialEq for ShareRelays
[src]
impl ToBytes for ShareRelays
[src]
Auto Trait Implementations
impl RefUnwindSafe for ShareRelays
[src]
impl Send for ShareRelays
[src]
impl Sync for ShareRelays
[src]
impl Unpin for ShareRelays
[src]
impl UnwindSafe for ShareRelays
[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> 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>,