Struct Channel
pub struct Channel {
pub local: KeyMaterial,
pub remote: Option<KeyMaterial>,
pub verified: bool,
pub binding: Option<Vec<u8>>,
}Expand description
What the channel the exchange runs over gives it. Debug does not show the binding.
Fields§
§local: KeyMaterialThis side’s key, which the other side will accept.
remote: Option<KeyMaterial>The other side’s key when the channel proved the other side holds it (a TLS handshake
does); None over a channel that proves nothing, where the key comes from the exchange.
verified: boolWhether the channel also verified that remote is the peer this side meant to reach: a
pin of it, or roots for the name dialled. Proving a key is not that: any certificate
whose key is proven passes Trust::AnyWithKeyProof. The device flow’s joiner needs it.
binding: Option<Vec<u8>>Bytes both ends of this channel and nobody else share (a TLS exporter), bound into the
PIN confirmation so a relay between two channels fails it; None without one.
Trait Implementations§
impl Eq for Channel
impl StructuralPartialEq for Channel
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnsafeUnpin for Channel
impl UnwindSafe for Channel
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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