pub enum Request<'a> {
NetStart,
NetStop,
NetLocalAddr,
NetAdvertise,
NetRecv,
NetSend([u8; 6], &'a [u8]),
NetSendStatus([u8; 6]),
ReadInput,
}
Expand description
Request that the main chip sends to the IO chip.
Variants§
NetStart
Start listening for messages.
NetStop
Stop accepting new messages and connections.
NetLocalAddr
Get MAC address of this device’s IO chip.
NetAdvertise
Broadcast advertisement message.
NetRecv
Read an incoming message (if any) from the IO chip.
NetSend([u8; 6], &'a [u8])
Send an outgoing message to the IO chip.
NetSendStatus([u8; 6])
Get send status of the previous message for the peer.
ReadInput
Get the latest touchpad and buttons inputs.
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Request<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Request<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> Encode<'a> for Request<'a>
impl<'a> Encode<'a> for Request<'a>
impl<'a> StructuralPartialEq for Request<'a>
Auto Trait Implementations§
impl<'a> Freeze for Request<'a>
impl<'a> RefUnwindSafe for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> UnwindSafe for Request<'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