pub enum Framing {
Stream,
Message,
}Expand description
How a method divides what it sends.
Variants§
Stream
A byte stream: the boundaries between receive calls and
between transmit results mean nothing, so the bytes may be
split or joined by the transport. Reliable, ordered transports only.
Message
Discrete messages: each transmit result is one message and
each receive call gets exactly one. A byte-stream transport
must add framing; drive_stream prefixes each message with its
length as four big-endian bytes.
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