pub struct PushPromise;Expand description
PushPromise is always rejected with PROTOCOL_ERROR at the wire layer.
Sozu never announces SETTINGS_ENABLE_PUSH=1, and RFC 9113 §8.4 requires
that a peer which has not enabled server push treat a received
PUSH_PROMISE as a connection error of type PROTOCOL_ERROR. Rejecting in
the parser is defence-in-depth: any future refactor of mux/h2.rs that
forgets to call handle_push_promise_frame cannot silently accept push
traffic. The struct is retained so the outer match in h2.rs still
compiles, but push_promise_frame never constructs it.
Trait Implementations§
Source§impl Clone for PushPromise
impl Clone for PushPromise
Source§fn clone(&self) -> PushPromise
fn clone(&self) -> PushPromise
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 moreAuto Trait Implementations§
impl Freeze for PushPromise
impl RefUnwindSafe for PushPromise
impl Send for PushPromise
impl Sync for PushPromise
impl Unpin for PushPromise
impl UnsafeUnpin for PushPromise
impl UnwindSafe for PushPromise
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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