pub enum ClientControl {
Hello {
protocol_major: ProtocolVersion,
protocol_minor: u32,
capabilities: Vec<CapabilityName>,
client: Option<String>,
},
Request {
request_id: RequestId,
request: KernelRequest,
},
}Expand description
Everything a client may send on kind 0x01.
Variants§
Hello
The mandatory first frame. Nothing else is decoded before it succeeds.
Fields
§
protocol_major: ProtocolVersion§
capabilities: Vec<CapabilityName>At most MAX_CAPABILITIES names the client would like.
Request
Trait Implementations§
Source§impl Clone for ClientControl
impl Clone for ClientControl
Source§fn clone(&self) -> ClientControl
fn clone(&self) -> ClientControl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ClientControl
impl Debug for ClientControl
Source§impl<'de> Deserialize<'de> for ClientControl
impl<'de> Deserialize<'de> for ClientControl
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 PartialEq for ClientControl
impl PartialEq for ClientControl
Source§impl Serialize for ClientControl
impl Serialize for ClientControl
impl StructuralPartialEq for ClientControl
Auto Trait Implementations§
impl Freeze for ClientControl
impl RefUnwindSafe for ClientControl
impl Send for ClientControl
impl Sync for ClientControl
impl Unpin for ClientControl
impl UnsafeUnpin for ClientControl
impl UnwindSafe for ClientControl
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