pub enum Command<'a> {
Ping,
Connect {
position: Position,
fov: f64,
},
ClientDisconnect,
Start,
StartServer {
cube: [u8; 4],
},
StartConfigless {
ip: &'a str,
},
Stop,
RequestImage,
ImagesDone,
ValueUpdate(ClientData),
InfoUpdate {
client_ip: &'a str,
position: Position,
fov: Option<f64>,
},
}Variants§
Ping
Connect
ClientDisconnect
Start
StartServer
StartConfigless
Stop
RequestImage
ImagesDone
ValueUpdate(ClientData)
InfoUpdate
Implementations§
Source§impl Command<'_>
impl Command<'_>
pub const PING: u8 = 0x0b
pub const CONNECT: u8 = 0xcc
pub const CLIENT_DISCONNECT: u8 = 0xdc
pub const START: u8 = 0x60
pub const START_SERVER: u8 = 0x55
pub const START_CONFIGLESS: u8 = 0x6c
pub const STOP: u8 = 0xcd
pub const REQUEST_IMAGE: u8 = 0x17
pub const IMAGES_DONE: u8 = 0x1d
pub const VALUE_UPDATE: u8 = 0x21
pub const INFO_UPDATE: u8 = 0x1f
Trait Implementations§
Source§impl<'a> PartialEq for Command<'a>
impl<'a> PartialEq for Command<'a>
impl<'a> Copy for Command<'a>
impl<'a> StructuralPartialEq for Command<'a>
Auto Trait Implementations§
impl<'a> Freeze for Command<'a>
impl<'a> RefUnwindSafe for Command<'a>
impl<'a> Send for Command<'a>
impl<'a> Sync for Command<'a>
impl<'a> Unpin for Command<'a>
impl<'a> UnsafeUnpin for Command<'a>
impl<'a> UnwindSafe for Command<'a>
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