pub enum Framing {
Headers,
Lines,
}Expand description
How messages are delimited on the wire.
The one place the two protocols genuinely differ at the transport level.
Variants§
Headers
LSP: Content-Length: N\r\n\r\n then N bytes.
Lines
MCP over stdio: one JSON object per line.
Trait Implementations§
impl Copy for Framing
impl Eq for Framing
impl StructuralPartialEq for Framing
Auto Trait Implementations§
impl Freeze for Framing
impl RefUnwindSafe for Framing
impl Send for Framing
impl Sync for Framing
impl Unpin for Framing
impl UnsafeUnpin for Framing
impl UnwindSafe for Framing
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