pub struct ChannelBinding(/* private fields */);Expand description
Binding supplied by the owner of a completed encrypted channel. This value is public transcript data, not an independent authority credential.
Implementations§
Source§impl ChannelBinding
impl ChannelBinding
Sourcepub const fn new(bytes: [u8; 32]) -> ChannelBinding
pub const fn new(bytes: [u8; 32]) -> ChannelBinding
Adopt the public binding derived by the established channel’s owner.
The derivation must bind these bytes to the actual protected channel and domain-separate its transport/application profile. Lace signs and compares this value; it does not establish encryption or verify the derivation.
pub const fn as_bytes(&self) -> &[u8; 32]
Trait Implementations§
Source§impl Clone for ChannelBinding
impl Clone for ChannelBinding
Source§fn clone(&self) -> ChannelBinding
fn clone(&self) -> ChannelBinding
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 moreimpl Copy for ChannelBinding
Source§impl Debug for ChannelBinding
impl Debug for ChannelBinding
Source§impl Display for ChannelBinding
impl Display for ChannelBinding
impl Eq for ChannelBinding
Source§impl PartialEq for ChannelBinding
impl PartialEq for ChannelBinding
Source§fn eq(&self, other: &ChannelBinding) -> bool
fn eq(&self, other: &ChannelBinding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChannelBinding
Auto Trait Implementations§
impl Freeze for ChannelBinding
impl RefUnwindSafe for ChannelBinding
impl Send for ChannelBinding
impl Sync for ChannelBinding
impl Unpin for ChannelBinding
impl UnsafeUnpin for ChannelBinding
impl UnwindSafe for ChannelBinding
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