Struct zenoh_protocol::network::ext::NodeIdType
source · pub struct NodeIdType<const ID: u8> {
pub node_id: u16,
}Expand description
7 6 5 4 3 2 1 0
+-+-+-+-+-+-+-+-+
|Z|0_1| ID |
+-+-+-+---------+
% node_id %
+---------------+
Fields§
§node_id: u16Trait Implementations§
source§impl<const ID: u8> Clone for NodeIdType<ID>
impl<const ID: u8> Clone for NodeIdType<ID>
source§fn clone(&self) -> NodeIdType<ID>
fn clone(&self) -> NodeIdType<ID>
Returns a copy 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<const ID: u8> Debug for NodeIdType<ID>
impl<const ID: u8> Debug for NodeIdType<ID>
source§impl<const ID: u8> Default for NodeIdType<{ ID }>
impl<const ID: u8> Default for NodeIdType<{ ID }>
source§impl<const ID: u8> From<NodeIdType<ID>> for ZExtZ64<{ ID }>
impl<const ID: u8> From<NodeIdType<ID>> for ZExtZ64<{ ID }>
source§fn from(ext: NodeIdType<{ ID }>) -> Self
fn from(ext: NodeIdType<{ ID }>) -> Self
Converts to this type from the input type.
source§impl<const ID: u8> PartialEq for NodeIdType<ID>
impl<const ID: u8> PartialEq for NodeIdType<ID>
source§fn eq(&self, other: &NodeIdType<ID>) -> bool
fn eq(&self, other: &NodeIdType<ID>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<const ID: u8> Copy for NodeIdType<ID>
impl<const ID: u8> Eq for NodeIdType<ID>
impl<const ID: u8> StructuralPartialEq for NodeIdType<ID>
Auto Trait Implementations§
impl<const ID: u8> Freeze for NodeIdType<ID>
impl<const ID: u8> RefUnwindSafe for NodeIdType<ID>
impl<const ID: u8> Send for NodeIdType<ID>
impl<const ID: u8> Sync for NodeIdType<ID>
impl<const ID: u8> Unpin for NodeIdType<ID>
impl<const ID: u8> UnwindSafe for NodeIdType<ID>
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