pub enum FlushPolicy {
Relaxed,
Strict,
}Expand description
Policy controlling how TLS layer flushes encrypted data to the transport.
Variants§
Relaxed
Close the TLS encryption buffer and pass bytes to the transport delegate. Do not force a transport-level flush or wait for an ACK.
Strict
In addition to passing bytes to the transport delegate, request a transport-level flush and wait for confirmation (ACK) before returning.
Implementations§
Source§impl FlushPolicy
impl FlushPolicy
Sourcepub fn flush_transport(&self) -> bool
pub fn flush_transport(&self) -> bool
Returns true when the transport delegate should be explicitly flushed.
Relaxed -> false, Strict -> true.
Trait Implementations§
Source§impl Clone for FlushPolicy
impl Clone for FlushPolicy
Source§fn clone(&self) -> FlushPolicy
fn clone(&self) -> FlushPolicy
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 moreSource§impl Debug for FlushPolicy
impl Debug for FlushPolicy
Source§impl Default for FlushPolicy
impl Default for FlushPolicy
Source§impl PartialEq for FlushPolicy
impl PartialEq for FlushPolicy
impl Copy for FlushPolicy
impl Eq for FlushPolicy
impl StructuralPartialEq for FlushPolicy
Auto Trait Implementations§
impl Freeze for FlushPolicy
impl RefUnwindSafe for FlushPolicy
impl Send for FlushPolicy
impl Sync for FlushPolicy
impl Unpin for FlushPolicy
impl UnwindSafe for FlushPolicy
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