#[repr(u8)]pub enum FrameKind {
Patch = 1,
Text = 2,
}Expand description
What an envelope’s payload contains
The kind is authenticated together with the payload, so a receiver can route the payload without parsing it first.
Variants§
Patch = 1
A hot-reload patch: [u64 BE header length][JSON jump table][library]
Only the server sends patches.
Text = 2
UTF-8 JSON control or metadata, at most MAX_CONTROL bytes
Covers the client hello, logs, traces, and server control messages.
Trait Implementations§
impl Copy for FrameKind
impl Eq for FrameKind
impl StructuralPartialEq for FrameKind
Auto Trait Implementations§
impl Forget for FrameKind
impl Freeze for FrameKind
impl Move for FrameKind
impl RefUnwindSafe for FrameKind
impl Send for FrameKind
impl Sync for FrameKind
impl Unpin for FrameKind
impl UnsafeUnpin for FrameKind
impl UnwindSafe for FrameKind
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