#[non_exhaustive]pub struct RejectedEch { /* private fields */ }
Expand description
The server rejected the request to enable Encrypted Client Hello (ECH)
If RejectedEch::can_retry()
is true, then you may use this with
crate::client::EchConfig::for_retry()
to build a new EchConfig
for a fresh client
connection that will use a compatible ECH configuration provided by the server for a retry.
Implementations§
Source§impl RejectedEch
impl RejectedEch
Sourcepub fn can_retry(&self) -> bool
pub fn can_retry(&self) -> bool
Returns true if the server provided new ECH configurations to use for a fresh retry connection
The RejectedEch
error can be provided to crate::client::EchConfig::for_retry()
to build a new EchConfig
for a fresh client connection that will use a compatible ECH
configuration provided by the server for a retry.
Sourcepub fn retry_configs(&self) -> Option<EchConfigListBytes<'static>>
pub fn retry_configs(&self) -> Option<EchConfigListBytes<'static>>
Returns an EchConfigListBytes
with the server’s provided retry configurations (if any)
Trait Implementations§
Source§impl Clone for RejectedEch
impl Clone for RejectedEch
Source§fn clone(&self) -> RejectedEch
fn clone(&self) -> RejectedEch
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 RejectedEch
impl Debug for RejectedEch
Source§impl From<RejectedEch> for Error
impl From<RejectedEch> for Error
Source§fn from(rejected_error: RejectedEch) -> Self
fn from(rejected_error: RejectedEch) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RejectedEch
impl PartialEq for RejectedEch
impl StructuralPartialEq for RejectedEch
Auto Trait Implementations§
impl Freeze for RejectedEch
impl RefUnwindSafe for RejectedEch
impl Send for RejectedEch
impl Sync for RejectedEch
impl Unpin for RejectedEch
impl UnwindSafe for RejectedEch
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