pub enum MessageFormat {
Text,
Binary(BinaryLinoOptions),
}Expand description
The wire format a message arrived in, so a reply can use the same one.
Variants§
Implementations§
Source§impl MessageFormat
impl MessageFormat
Sourcepub fn protocol(self, limits: DecodeLimits) -> Box<dyn LinoProtocol>
pub fn protocol(self, limits: DecodeLimits) -> Box<dyn LinoProtocol>
A protocol that writes messages in this format.
Trait Implementations§
Source§impl Clone for MessageFormat
impl Clone for MessageFormat
Source§fn clone(&self) -> MessageFormat
fn clone(&self) -> MessageFormat
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 moreimpl Copy for MessageFormat
Source§impl Debug for MessageFormat
impl Debug for MessageFormat
impl Eq for MessageFormat
Source§impl PartialEq for MessageFormat
impl PartialEq for MessageFormat
impl StructuralPartialEq for MessageFormat
Auto Trait Implementations§
impl Freeze for MessageFormat
impl RefUnwindSafe for MessageFormat
impl Send for MessageFormat
impl Sync for MessageFormat
impl Unpin for MessageFormat
impl UnsafeUnpin for MessageFormat
impl UnwindSafe for MessageFormat
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