#[repr(u8)]pub enum ProtosocketControlCode {
Normal = 0,
Cancel = 1,
End = 2,
}
Variants§
Normal = 0
No special behavior
Cancel = 1
Cancel processing the message with this message’s id
End = 2
End processing the message with this message’s id - for response streaming
Implementations§
Trait Implementations§
Source§impl Clone for ProtosocketControlCode
impl Clone for ProtosocketControlCode
Source§fn clone(&self) -> ProtosocketControlCode
fn clone(&self) -> ProtosocketControlCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProtosocketControlCode
impl Debug for ProtosocketControlCode
impl Copy for ProtosocketControlCode
Auto Trait Implementations§
impl Freeze for ProtosocketControlCode
impl RefUnwindSafe for ProtosocketControlCode
impl Send for ProtosocketControlCode
impl Sync for ProtosocketControlCode
impl Unpin for ProtosocketControlCode
impl UnwindSafe for ProtosocketControlCode
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