#[non_exhaustive]pub enum MessageKind {
Request,
Response,
Framing,
}Expand description
What an Error::MessageParse was parsing.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Request
An inbound request (server side).
Response
An inbound response (client side).
Framing
A message whose direction is not yet known: the shared header framing check.
Implementations§
Source§impl MessageKind
impl MessageKind
Sourcepub fn name(&self) -> &'static str
pub fn name(&self) -> &'static str
The label shown in Error::MessageParse’s message.
Trait Implementations§
Source§impl Clone for MessageKind
impl Clone for MessageKind
impl Copy for MessageKind
Source§impl Debug for MessageKind
impl Debug for MessageKind
Source§impl Display for MessageKind
impl Display for MessageKind
impl Eq for MessageKind
Source§impl PartialEq for MessageKind
impl PartialEq for MessageKind
impl StructuralPartialEq for MessageKind
Auto Trait Implementations§
impl Forget for MessageKind
impl Freeze for MessageKind
impl RefUnwindSafe for MessageKind
impl Send for MessageKind
impl Sync for MessageKind
impl Unpin for MessageKind
impl UnsafeUnpin for MessageKind
impl UnwindSafe for MessageKind
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