#[repr(u8)]pub enum CommandType {
StartSync = 1,
StopSync = 2,
RefreshInfo = 3,
SetHierarchy = 16,
Ping = 254,
Reset = 255,
}Expand description
Command types
Variants§
StartSync = 1
Request sync start
StopSync = 2
Request sync stop
RefreshInfo = 3
Request node info refresh
SetHierarchy = 16
Set hierarchy level (for testing)
Ping = 254
Ping (keepalive)
Reset = 255
Reset connection
Trait Implementations§
Source§impl Clone for CommandType
impl Clone for CommandType
Source§fn clone(&self) -> CommandType
fn clone(&self) -> CommandType
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 CommandType
impl Debug for CommandType
Source§impl From<u8> for CommandType
impl From<u8> for CommandType
Source§impl PartialEq for CommandType
impl PartialEq for CommandType
impl Copy for CommandType
impl Eq for CommandType
impl StructuralPartialEq for CommandType
Auto Trait Implementations§
impl Freeze for CommandType
impl RefUnwindSafe for CommandType
impl Send for CommandType
impl Sync for CommandType
impl Unpin for CommandType
impl UnwindSafe for CommandType
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