pub struct TransportPolicy { /* private fields */ }
Expand description
Configuration policy for trust operations including TOFU, continuity, and channel binding. Provides a builder pattern for configuring trust behavior.
Implementations§
Source§impl TransportPolicy
impl TransportPolicy
Sourcepub fn with_allow_tofu(self, v: bool) -> Self
pub fn with_allow_tofu(self, v: bool) -> Self
Configure whether Trust-On-First-Use (TOFU) pinning is allowed. When true, unknown peers can be automatically pinned on first connection.
Sourcepub fn with_require_continuity(self, v: bool) -> Self
pub fn with_require_continuity(self, v: bool) -> Self
Configure whether key rotation continuity validation is required. When true, key rotations must provide valid continuity signatures.
Sourcepub fn with_enable_channel_binding(self, v: bool) -> Self
pub fn with_enable_channel_binding(self, v: bool) -> Self
Configure whether channel binding verification is enabled. When true, connections will perform channel binding checks.
Sourcepub fn with_event_sink(self, sink: Arc<dyn EventSink>) -> Self
pub fn with_event_sink(self, sink: Arc<dyn EventSink>) -> Self
Set an event sink to receive notifications about trust operations. The sink will be called for pinning, rotation, and binding events.
Trait Implementations§
Source§impl Clone for TransportPolicy
impl Clone for TransportPolicy
Source§fn clone(&self) -> TransportPolicy
fn clone(&self) -> TransportPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TransportPolicy
impl !RefUnwindSafe for TransportPolicy
impl Send for TransportPolicy
impl Sync for TransportPolicy
impl Unpin for TransportPolicy
impl !UnwindSafe for TransportPolicy
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