Enum sn_messaging::location::SrcLocation[][src]

pub enum SrcLocation {
    EndUser(EndUser),
    Node(XorName),
    Section(XorName),
}

Message source location.

Variants

EndUser(EndUser)

An EndUser uses one or more Clients.

Node(XorName)

A single node with the given name.

Section(XorName)

A section close to a name.

Implementations

impl SrcLocation[src]

pub fn is_section(&self) -> bool[src]

Returns whether this location is a section.

pub fn is_user(&self) -> bool[src]

Returns whether this location is a section.

pub fn equals(&self, name: &XorName) -> bool[src]

Returns whether the given name is part of this location

pub fn name(&self) -> XorName[src]

Returns the name of this location, or None if it is Direct.

pub fn to_dst(&self) -> DstLocation[src]

Returns this location as DstLocation

Trait Implementations

impl Clone for SrcLocation[src]

impl Copy for SrcLocation[src]

impl Debug for SrcLocation[src]

impl<'de> Deserialize<'de> for SrcLocation[src]

impl Eq for SrcLocation[src]

impl Hash for SrcLocation[src]

impl PartialEq<SrcLocation> for SrcLocation[src]

impl Serialize for SrcLocation[src]

impl StructuralEq for SrcLocation[src]

impl StructuralPartialEq for SrcLocation[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Member for T where
    T: Clone + Hash + Eq
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,