pub struct MetaView<'a> { /* private fields */ }Expand description
The reserved metadata a request carried.
A borrowed view over an already-parsed object, because the transport
boundary is where JSON is parsed and nothing downstream of it should meet a
raw string. A protocol that reserves no keys is handed an empty view and
answers None; one that reserves several picks the ones it defines and
ignores the rest, because a peer sending a key this protocol has not heard
of is a peer running a newer draft, not a peer that sent nonsense.
Implementations§
Trait Implementations§
impl<'a> Copy for MetaView<'a>
impl<'a> Eq for MetaView<'a>
impl<'a> StructuralPartialEq for MetaView<'a>
Auto Trait Implementations§
impl<'a> Freeze for MetaView<'a>
impl<'a> RefUnwindSafe for MetaView<'a>
impl<'a> Send for MetaView<'a>
impl<'a> Sync for MetaView<'a>
impl<'a> Unpin for MetaView<'a>
impl<'a> UnsafeUnpin for MetaView<'a>
impl<'a> UnwindSafe for MetaView<'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