Enum sn_messaging::location::SrcLocation [−][src]
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]
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 Clone for SrcLocation
[src]fn clone(&self) -> SrcLocation
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SrcLocation
[src]
impl Copy for SrcLocation
[src]impl<'de> Deserialize<'de> for SrcLocation
[src]
impl<'de> Deserialize<'de> for SrcLocation
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for SrcLocation
[src]
impl Eq for SrcLocation
[src]impl Hash for SrcLocation
[src]
impl Hash for SrcLocation
[src]impl PartialEq<SrcLocation> for SrcLocation
[src]
impl PartialEq<SrcLocation> for SrcLocation
[src]fn eq(&self, other: &SrcLocation) -> bool
[src]
fn ne(&self, other: &SrcLocation) -> bool
[src]
impl Serialize for SrcLocation
[src]
impl Serialize for SrcLocation
[src]impl StructuralEq for SrcLocation
[src]
impl StructuralEq for SrcLocation
[src]impl StructuralPartialEq for SrcLocation
[src]
impl StructuralPartialEq for SrcLocation
[src]Auto Trait Implementations
impl RefUnwindSafe for SrcLocation
impl RefUnwindSafe for SrcLocation
impl Send for SrcLocation
impl Send for SrcLocation
impl Sync for SrcLocation
impl Sync for SrcLocation
impl Unpin for SrcLocation
impl Unpin for SrcLocation
impl UnwindSafe for SrcLocation
impl UnwindSafe for SrcLocation
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,