Enum sn_messaging::location::DstLocation [−][src]
Message destination location.
Variants
EndUser(EndUser)
An EndUser uses one or more Clients.
Node(XorName)
Destination is a single node with the given name.
Section(XorName)
Destination are the nodes of the section whose prefix matches the given name.
Destination is the node at the ConnectionInfo
the message is directly sent to.
Implementations
impl DstLocation
[src]
impl DstLocation
[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 contains(&self, name: &XorName, prefix: &Prefix) -> bool
[src]
Returns whether the given name of the given prefix is part of this location.
Returns None if prefix
does not match name
.
pub fn name(&self) -> Option<XorName>
[src]
Returns the name of this location, or None
if it is Direct
.
Trait Implementations
impl Clone for DstLocation
[src]
impl Clone for DstLocation
[src]fn clone(&self) -> DstLocation
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for DstLocation
[src]
impl Copy for DstLocation
[src]impl<'de> Deserialize<'de> for DstLocation
[src]
impl<'de> Deserialize<'de> for DstLocation
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for DstLocation
[src]
impl Eq for DstLocation
[src]impl Hash for DstLocation
[src]
impl Hash for DstLocation
[src]impl PartialEq<DstLocation> for DstLocation
[src]
impl PartialEq<DstLocation> for DstLocation
[src]fn eq(&self, other: &DstLocation) -> bool
[src]
fn ne(&self, other: &DstLocation) -> bool
[src]
impl Serialize for DstLocation
[src]
impl Serialize for DstLocation
[src]impl StructuralEq for DstLocation
[src]
impl StructuralEq for DstLocation
[src]impl StructuralPartialEq for DstLocation
[src]
impl StructuralPartialEq for DstLocation
[src]Auto Trait Implementations
impl RefUnwindSafe for DstLocation
impl RefUnwindSafe for DstLocation
impl Send for DstLocation
impl Send for DstLocation
impl Sync for DstLocation
impl Sync for DstLocation
impl Unpin for DstLocation
impl Unpin for DstLocation
impl UnwindSafe for DstLocation
impl UnwindSafe for DstLocation
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>,