pub struct ZenohIdProto(/* private fields */);
Expand description
The global unique id of a zenoh peer.
Implementations§
Source§impl ZenohIdProto
impl ZenohIdProto
pub const MAX_SIZE: usize = 16usize
pub fn size(&self) -> usize
pub fn to_le_bytes(&self) -> [u8; 16]
pub fn rand() -> ZenohIdProto
pub fn into_keyexpr(self) -> OwnedKeyExpr
Trait Implementations§
Source§impl Clone for ZenohIdProto
impl Clone for ZenohIdProto
Source§fn clone(&self) -> ZenohIdProto
fn clone(&self) -> ZenohIdProto
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ZenohIdProto
impl Debug for ZenohIdProto
Source§impl Default for ZenohIdProto
impl Default for ZenohIdProto
Source§impl<'de> Deserialize<'de> for ZenohIdProto
impl<'de> Deserialize<'de> for ZenohIdProto
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ZenohIdProto
impl Display for ZenohIdProto
Source§impl From<&ZenohIdProto> for ID
impl From<&ZenohIdProto> for ID
Source§fn from(zid: &ZenohIdProto) -> Self
fn from(zid: &ZenohIdProto) -> Self
Converts to this type from the input type.
Source§impl From<&ZenohIdProto> for OwnedKeyExpr
impl From<&ZenohIdProto> for OwnedKeyExpr
Source§fn from(zid: &ZenohIdProto) -> Self
fn from(zid: &ZenohIdProto) -> Self
Converts to this type from the input type.
Source§impl From<ZenohIdProto> for ID
impl From<ZenohIdProto> for ID
Source§fn from(zid: ZenohIdProto) -> Self
fn from(zid: ZenohIdProto) -> Self
Converts to this type from the input type.
Source§impl From<ZenohIdProto> for OwnedKeyExpr
impl From<ZenohIdProto> for OwnedKeyExpr
Source§fn from(zid: ZenohIdProto) -> Self
fn from(zid: ZenohIdProto) -> Self
Converts to this type from the input type.
Source§impl FromStr for ZenohIdProto
impl FromStr for ZenohIdProto
Source§impl Hash for ZenohIdProto
impl Hash for ZenohIdProto
Source§impl Ord for ZenohIdProto
impl Ord for ZenohIdProto
Source§fn cmp(&self, other: &ZenohIdProto) -> Ordering
fn cmp(&self, other: &ZenohIdProto) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ZenohIdProto
impl PartialEq for ZenohIdProto
Source§impl PartialOrd for ZenohIdProto
impl PartialOrd for ZenohIdProto
Source§impl Serialize for ZenohIdProto
impl Serialize for ZenohIdProto
Source§impl TryFrom<&[u8]> for ZenohIdProto
impl TryFrom<&[u8]> for ZenohIdProto
impl Copy for ZenohIdProto
impl Eq for ZenohIdProto
impl StructuralPartialEq for ZenohIdProto
Auto Trait Implementations§
impl Freeze for ZenohIdProto
impl RefUnwindSafe for ZenohIdProto
impl Send for ZenohIdProto
impl Sync for ZenohIdProto
impl Unpin for ZenohIdProto
impl UnwindSafe for ZenohIdProto
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more