pub struct ClientTls {
pub identity: Option<Identity>,
pub peer_ids: Vec<[u8; 32]>,
pub revoked: Revocations,
}Expand description
TLS settings of a client: peer_ids[i] is the expected certificate fingerprint of
FetchOptions::peers[i] (same length, same order); identity is presented to servers that
require client certificates and may be None for servers that accept anonymous clients;
revoked fingerprints are refused even when pinned (a pinned peer that is revoked makes the
whole fetch fail before any connection: skipping it silently would make a mistake in the
wrong file look like an unreachable peer).
Fields§
§identity: Option<Identity>§peer_ids: Vec<[u8; 32]>§revoked: RevocationsTrait Implementations§
Auto Trait Implementations§
impl Freeze for ClientTls
impl RefUnwindSafe for ClientTls
impl Send for ClientTls
impl Sync for ClientTls
impl Unpin for ClientTls
impl UnsafeUnpin for ClientTls
impl UnwindSafe for ClientTls
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DefaultBoxed for Twhere
T: Default,
impl<T> DefaultBoxed for Twhere
T: Default,
Source§unsafe fn default_in_place(ptr: *mut T)
unsafe fn default_in_place(ptr: *mut T)
Fill the given memory location with default value. Read more
Source§fn default_boxed() -> Box<Self>where
Self: Sized,
fn default_boxed() -> Box<Self>where
Self: Sized,
Create a boxed instance with default value for each field.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more