#[repr(u8)]pub enum FrameType {
Request = 0,
Response = 1,
Notify = 2,
Error = 3,
}Expand description
The different types of frames that can be sent
Variants§
Request = 0
Request to a server
Response = 1
Response to a request
Notify = 2
Async notification from the server
Error = 3
Error response from the server
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrameType
impl RefUnwindSafe for FrameType
impl Send for FrameType
impl Sync for FrameType
impl Unpin for FrameType
impl UnwindSafe for FrameType
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