pub struct ProtocolId(/* private fields */);Expand description
A unique identifier for a Protocol configuration.
Computed as a BLAKE3 hash of sorted channel, message, and component names. Used during handshake to detect protocol mismatches between client and server.
Implementations§
Trait Implementations§
Source§impl Clone for ProtocolId
impl Clone for ProtocolId
Source§fn clone(&self) -> ProtocolId
fn clone(&self) -> ProtocolId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProtocolId
impl Debug for ProtocolId
Source§impl Default for ProtocolId
impl Default for ProtocolId
Source§fn default() -> ProtocolId
fn default() -> ProtocolId
Returns the “default value” for a type. Read more
Source§impl Display for ProtocolId
impl Display for ProtocolId
Source§impl Hash for ProtocolId
impl Hash for ProtocolId
Source§impl PartialEq for ProtocolId
impl PartialEq for ProtocolId
Source§fn eq(&self, other: &ProtocolId) -> bool
fn eq(&self, other: &ProtocolId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serde for ProtocolId
impl Serde for ProtocolId
impl Copy for ProtocolId
impl Eq for ProtocolId
impl StructuralPartialEq for ProtocolId
Auto Trait Implementations§
impl Freeze for ProtocolId
impl RefUnwindSafe for ProtocolId
impl Send for ProtocolId
impl Sync for ProtocolId
impl Unpin for ProtocolId
impl UnsafeUnpin for ProtocolId
impl UnwindSafe for ProtocolId
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