#[non_exhaustive]pub struct RefusedFrame<'a> {
pub draft: DraftVersion,
pub stream_id: Option<u64>,
pub raw: &'a [u8],
}Expand description
A received control frame the connection refused, lifted out of whichever
draft’s ControlMessageRefused event carried it. See
AnyClientEvent::refused_frame.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.draft: DraftVersionThe draft whose rules refused it.
stream_id: Option<u64>The stream it arrived on, or None for the control stream. Always
None on drafts 07 through 15, which have no other stream for it.
raw: &'a [u8]The framed wire bytes the refusal is about.
Trait Implementations§
Source§impl<'a> Clone for RefusedFrame<'a>
impl<'a> Clone for RefusedFrame<'a>
impl<'a> Copy for RefusedFrame<'a>
Source§impl<'a> Debug for RefusedFrame<'a>
impl<'a> Debug for RefusedFrame<'a>
impl<'a> Eq for RefusedFrame<'a>
Source§impl<'a> PartialEq for RefusedFrame<'a>
impl<'a> PartialEq for RefusedFrame<'a>
impl<'a> StructuralPartialEq for RefusedFrame<'a>
Auto Trait Implementations§
impl<'a> Forget for RefusedFrame<'a>
impl<'a> Freeze for RefusedFrame<'a>
impl<'a> Move for RefusedFrame<'a>
impl<'a> RefUnwindSafe for RefusedFrame<'a>
impl<'a> Send for RefusedFrame<'a>
impl<'a> Sync for RefusedFrame<'a>
impl<'a> Unpin for RefusedFrame<'a>
impl<'a> UnsafeUnpin for RefusedFrame<'a>
impl<'a> UnwindSafe for RefusedFrame<'a>
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