Struct zenoh_config::Locator
source · pub struct Locator(/* private fields */);
Expand description
A String
that respects the Locator
canon form: <proto>/<address>[?<metadata>]
,
such that <metadata>
is of the form <key1>=<value1>;...;<keyN>=<valueN>
where keys are alphabetically sorted.
Implementations§
source§impl Locator
impl Locator
pub fn new<A, B, C>( protocol: A, address: B, metadata: C ) -> Result<Locator, Box<dyn Error + Sync + Send>>
pub fn protocol(&self) -> Protocol<'_>
pub fn protocol_mut(&mut self) -> ProtocolMut<'_>
pub fn address(&self) -> Address<'_>
pub fn address_mut(&mut self) -> AddressMut<'_>
pub fn metadata(&self) -> Metadata<'_>
pub fn metadata_mut(&mut self) -> MetadataMut<'_>
pub fn as_str(&self) -> &str
Trait Implementations§
source§impl<'de> Deserialize<'de> for Locator
impl<'de> Deserialize<'de> for Locator
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Locator, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Locator, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Locator
impl PartialEq for Locator
source§impl Serialize for Locator
impl Serialize for Locator
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Locator
impl StructuralPartialEq for Locator
Auto Trait Implementations§
impl Freeze for Locator
impl RefUnwindSafe for Locator
impl Send for Locator
impl Sync for Locator
impl Unpin for Locator
impl UnwindSafe for Locator
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.