pub struct LaunchSession {
pub application_id: String,
pub display_params: Option<VirtualDisplayParameters>,
pub permanent_gamepads: Vec<Gamepad>,
}
Expand description
§013 - Launch Session
This message, which must originate from the client on a new stream, requests
that the server launch the application specified by id
. The id should match
the id of an application returned by 012 - Application List
.
The server must either launch a session, replying with 014 - Session Launched
once the session has started and is available to attach, or send an
001 - Error
message on the same stream indicating why it refuses to do so.
Fields§
§application_id: String
Required; must match the id of an application returned in “12 - Application List”.
display_params: Option<VirtualDisplayParameters>
Required.
permanent_gamepads: Vec<Gamepad>
Any gamepads that should be available at the start of the session. This is sometimes important for applications that don’t correctly support hotplugged devices.
These gamepads should be considered permanently connected, and GamepadUnavailable events should be ignored for them.
Trait Implementations§
Source§impl Clone for LaunchSession
impl Clone for LaunchSession
Source§fn clone(&self) -> LaunchSession
fn clone(&self) -> LaunchSession
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LaunchSession
impl Debug for LaunchSession
Source§impl Default for LaunchSession
impl Default for LaunchSession
Source§impl From<LaunchSession> for MessageType
impl From<LaunchSession> for MessageType
Source§fn from(v: LaunchSession) -> Self
fn from(v: LaunchSession) -> Self
Source§impl Message for LaunchSession
impl Message for LaunchSession
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.