pub struct RefusedFrame {
pub type_id: u64,
pub raw_bytes: Option<Bytes>,
}Expand description
A frame the parser located but the decoder refused.
The frame header decoded — that is what said where this frame ends and the next begins — and nothing inside it did, so the Message Type is the whole of what it can still say about itself.
Fields§
§type_id: u64The Message Type varint the frame declared.
raw_bytes: Option<Bytes>The original wire bytes of this frame — set on the same terms as
ParsedFrame::raw_bytes, and for the same caller.
A caller that owns the forwarding path must still write these. The proxy could not read the message; the peer it was addressed to may well be able to, and a message dropped in transit is a fault the two endpoints have no way to attribute.
Trait Implementations§
Source§impl Clone for RefusedFrame
impl Clone for RefusedFrame
Source§fn clone(&self) -> RefusedFrame
fn clone(&self) -> RefusedFrame
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 RefusedFrame
impl RefUnwindSafe for RefusedFrame
impl Send for RefusedFrame
impl Sync for RefusedFrame
impl Unpin for RefusedFrame
impl UnsafeUnpin for RefusedFrame
impl UnwindSafe for RefusedFrame
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