pub struct VersionNotAvailable {
pub required: Version,
pub negotiated: Version,
}Expand description
A RequireVersion demand the connection in hand does not satisfy.
Carries both halves, because “HTTP/2 was required” and “HTTP/1.1 is what this connection negotiated” are separately actionable — the first is the caller’s own request coming back, the second is a fact about the server or the TLS configuration.
One type in this crate rather than one per backend (the shape
hclient_h3::RequestTrailersNotSent takes), because a caller
downcasting on it must not have to know which transport is underneath:
the demand is portable, so its refusal is too.
Fields§
§required: Version§negotiated: VersionTrait Implementations§
Source§impl Clone for VersionNotAvailable
impl Clone for VersionNotAvailable
Source§fn clone(&self) -> VersionNotAvailable
fn clone(&self) -> VersionNotAvailable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VersionNotAvailable
Source§impl Debug for VersionNotAvailable
impl Debug for VersionNotAvailable
Source§impl Display for VersionNotAvailable
impl Display for VersionNotAvailable
impl Eq for VersionNotAvailable
Source§impl Error for VersionNotAvailable
impl Error for VersionNotAvailable
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()
Source§impl PartialEq for VersionNotAvailable
impl PartialEq for VersionNotAvailable
impl StructuralPartialEq for VersionNotAvailable
Auto Trait Implementations§
impl Freeze for VersionNotAvailable
impl RefUnwindSafe for VersionNotAvailable
impl Send for VersionNotAvailable
impl Sync for VersionNotAvailable
impl Unpin for VersionNotAvailable
impl UnsafeUnpin for VersionNotAvailable
impl UnwindSafe for VersionNotAvailable
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