pub enum Trust {
Pinned([u8; 32]),
WebPki,
Insecure,
}Expand description
How to trust whatever certificate the station presents. Mirrors the
three modes macula_quic’s own build_client_config supports — see
plans/PLAN_WIRE_PROTOCOL.md §2.
Variants§
Pinned([u8; 32])
Pin the station’s known Ed25519 pubkey (its macula NodeId). The right mode once a station’s identity is known — DHT-resolved, or configured directly, which is the normal case for a mobile client dialing a known station.
WebPki
Standard CA-bundle + hostname validation, for a station whose TLS is terminated by real PKI (e.g. Let’s Encrypt) rather than a self-signed macula identity cert.
Insecure
Skip verification entirely. Development/diagnostic only — see
crate::cert::SkipServerVerification’s own warning.
Auto Trait Implementations§
impl Freeze for Trust
impl RefUnwindSafe for Trust
impl Send for Trust
impl Sync for Trust
impl Unpin for Trust
impl UnsafeUnpin for Trust
impl UnwindSafe for Trust
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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