pub enum ChannelBindingError {
WrongLength {
expected: usize,
got: usize,
},
ExporterUnavailable(String),
}Expand description
Errors from parsing a channel binding or extracting one from a transport.
Variants§
WrongLength
The exporter material was not exactly TLS_EXPORTER_LEN bytes.
The underlying TLS stack refused to export keying material (no handshake completed, the connection is not TLS 1.3-capable, or the exporter is otherwise unavailable). A session that cannot produce a binding MUST NOT fall back to an unbound proof — that would silently reopen the relay hole. Surface this and refuse.
Trait Implementations§
Source§impl Debug for ChannelBindingError
impl Debug for ChannelBindingError
Source§impl Display for ChannelBindingError
impl Display for ChannelBindingError
Source§impl Error for ChannelBindingError
impl Error for ChannelBindingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ChannelBindingError
impl RefUnwindSafe for ChannelBindingError
impl Send for ChannelBindingError
impl Sync for ChannelBindingError
impl Unpin for ChannelBindingError
impl UnsafeUnpin for ChannelBindingError
impl UnwindSafe for ChannelBindingError
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