#[repr(u32)]pub enum MessageType {
Show 35 variants
Error(Error),
ListApplications(ListApplications),
ApplicationList(ApplicationList),
LaunchSession(LaunchSession),
SessionLaunched(SessionLaunched),
UpdateSession(UpdateSession),
SessionUpdated(SessionUpdated),
ListSessions(ListSessions),
SessionList(SessionList),
EndSession(EndSession),
SessionEnded(SessionEnded),
FetchApplicationImage(FetchApplicationImage),
ApplicationImage(ApplicationImage),
Attach(Attach),
Attached(Attached),
KeepAlive(KeepAlive),
SessionParametersChanged(SessionParametersChanged),
Detach(Detach),
VideoChunk(VideoChunk),
RequestVideoRefresh(RequestVideoRefresh),
AudioChunk(AudioChunk),
KeyboardInput(KeyboardInput),
PointerEntered(PointerEntered),
PointerLeft(PointerLeft),
PointerMotion(PointerMotion),
PointerInput(PointerInput),
PointerScroll(PointerScroll),
UpdateCursor(UpdateCursor),
LockPointer(LockPointer),
ReleasePointer(ReleasePointer),
RelativePointerMotion(RelativePointerMotion),
GamepadAvailable(GamepadAvailable),
GamepadUnavailable(GamepadUnavailable),
GamepadMotion(GamepadMotion),
GamepadInput(GamepadInput),
}
Expand description
A protocol message.
Variants§
Error(Error)
ListApplications(ListApplications)
ApplicationList(ApplicationList)
LaunchSession(LaunchSession)
SessionLaunched(SessionLaunched)
UpdateSession(UpdateSession)
SessionUpdated(SessionUpdated)
ListSessions(ListSessions)
SessionList(SessionList)
EndSession(EndSession)
SessionEnded(SessionEnded)
FetchApplicationImage(FetchApplicationImage)
ApplicationImage(ApplicationImage)
Attach(Attach)
Attached(Attached)
KeepAlive(KeepAlive)
SessionParametersChanged(SessionParametersChanged)
Detach(Detach)
VideoChunk(VideoChunk)
RequestVideoRefresh(RequestVideoRefresh)
AudioChunk(AudioChunk)
KeyboardInput(KeyboardInput)
PointerEntered(PointerEntered)
PointerLeft(PointerLeft)
PointerMotion(PointerMotion)
PointerInput(PointerInput)
PointerScroll(PointerScroll)
UpdateCursor(UpdateCursor)
LockPointer(LockPointer)
ReleasePointer(ReleasePointer)
RelativePointerMotion(RelativePointerMotion)
GamepadAvailable(GamepadAvailable)
GamepadMotion(GamepadMotion)
GamepadInput(GamepadInput)
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
Returns a copy 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 MessageType
impl Debug for MessageType
Source§impl Display for MessageType
impl Display for MessageType
Source§impl From<ApplicationImage> for MessageType
impl From<ApplicationImage> for MessageType
Source§fn from(v: ApplicationImage) -> Self
fn from(v: ApplicationImage) -> Self
Converts to this type from the input type.
Source§impl From<ApplicationList> for MessageType
impl From<ApplicationList> for MessageType
Source§fn from(v: ApplicationList) -> Self
fn from(v: ApplicationList) -> Self
Converts to this type from the input type.
Source§impl From<Attach> for MessageType
impl From<Attach> for MessageType
Source§impl From<Attached> for MessageType
impl From<Attached> for MessageType
Source§impl From<AudioChunk> for MessageType
impl From<AudioChunk> for MessageType
Source§fn from(v: AudioChunk) -> Self
fn from(v: AudioChunk) -> Self
Converts to this type from the input type.
Source§impl From<Detach> for MessageType
impl From<Detach> for MessageType
Source§impl From<EndSession> for MessageType
impl From<EndSession> for MessageType
Source§fn from(v: EndSession) -> Self
fn from(v: EndSession) -> Self
Converts to this type from the input type.
Source§impl From<Error> for MessageType
impl From<Error> for MessageType
Source§impl From<FetchApplicationImage> for MessageType
impl From<FetchApplicationImage> for MessageType
Source§fn from(v: FetchApplicationImage) -> Self
fn from(v: FetchApplicationImage) -> Self
Converts to this type from the input type.
Source§impl From<GamepadAvailable> for MessageType
impl From<GamepadAvailable> for MessageType
Source§fn from(v: GamepadAvailable) -> Self
fn from(v: GamepadAvailable) -> Self
Converts to this type from the input type.
Source§impl From<GamepadInput> for MessageType
impl From<GamepadInput> for MessageType
Source§fn from(v: GamepadInput) -> Self
fn from(v: GamepadInput) -> Self
Converts to this type from the input type.
Source§impl From<GamepadMotion> for MessageType
impl From<GamepadMotion> for MessageType
Source§fn from(v: GamepadMotion) -> Self
fn from(v: GamepadMotion) -> Self
Converts to this type from the input type.
Source§fn from(v: GamepadUnavailable) -> Self
fn from(v: GamepadUnavailable) -> Self
Converts to this type from the input type.
Source§impl From<KeepAlive> for MessageType
impl From<KeepAlive> for MessageType
Source§impl From<KeyboardInput> for MessageType
impl From<KeyboardInput> for MessageType
Source§fn from(v: KeyboardInput) -> Self
fn from(v: KeyboardInput) -> Self
Converts to this type from the input type.
Source§impl From<LaunchSession> for MessageType
impl From<LaunchSession> for MessageType
Source§fn from(v: LaunchSession) -> Self
fn from(v: LaunchSession) -> Self
Converts to this type from the input type.
Source§impl From<ListApplications> for MessageType
impl From<ListApplications> for MessageType
Source§fn from(v: ListApplications) -> Self
fn from(v: ListApplications) -> Self
Converts to this type from the input type.
Source§impl From<ListSessions> for MessageType
impl From<ListSessions> for MessageType
Source§fn from(v: ListSessions) -> Self
fn from(v: ListSessions) -> Self
Converts to this type from the input type.
Source§impl From<LockPointer> for MessageType
impl From<LockPointer> for MessageType
Source§fn from(v: LockPointer) -> Self
fn from(v: LockPointer) -> Self
Converts to this type from the input type.
Source§impl From<PointerEntered> for MessageType
impl From<PointerEntered> for MessageType
Source§fn from(v: PointerEntered) -> Self
fn from(v: PointerEntered) -> Self
Converts to this type from the input type.
Source§impl From<PointerInput> for MessageType
impl From<PointerInput> for MessageType
Source§fn from(v: PointerInput) -> Self
fn from(v: PointerInput) -> Self
Converts to this type from the input type.
Source§impl From<PointerLeft> for MessageType
impl From<PointerLeft> for MessageType
Source§fn from(v: PointerLeft) -> Self
fn from(v: PointerLeft) -> Self
Converts to this type from the input type.
Source§impl From<PointerMotion> for MessageType
impl From<PointerMotion> for MessageType
Source§fn from(v: PointerMotion) -> Self
fn from(v: PointerMotion) -> Self
Converts to this type from the input type.
Source§impl From<PointerScroll> for MessageType
impl From<PointerScroll> for MessageType
Source§fn from(v: PointerScroll) -> Self
fn from(v: PointerScroll) -> Self
Converts to this type from the input type.
Source§impl From<RelativePointerMotion> for MessageType
impl From<RelativePointerMotion> for MessageType
Source§fn from(v: RelativePointerMotion) -> Self
fn from(v: RelativePointerMotion) -> Self
Converts to this type from the input type.
Source§impl From<ReleasePointer> for MessageType
impl From<ReleasePointer> for MessageType
Source§fn from(v: ReleasePointer) -> Self
fn from(v: ReleasePointer) -> Self
Converts to this type from the input type.
Source§impl From<RequestVideoRefresh> for MessageType
impl From<RequestVideoRefresh> for MessageType
Source§fn from(v: RequestVideoRefresh) -> Self
fn from(v: RequestVideoRefresh) -> Self
Converts to this type from the input type.
Source§impl From<SessionEnded> for MessageType
impl From<SessionEnded> for MessageType
Source§fn from(v: SessionEnded) -> Self
fn from(v: SessionEnded) -> Self
Converts to this type from the input type.
Source§impl From<SessionLaunched> for MessageType
impl From<SessionLaunched> for MessageType
Source§fn from(v: SessionLaunched) -> Self
fn from(v: SessionLaunched) -> Self
Converts to this type from the input type.
Source§impl From<SessionList> for MessageType
impl From<SessionList> for MessageType
Source§fn from(v: SessionList) -> Self
fn from(v: SessionList) -> Self
Converts to this type from the input type.
Source§impl From<SessionParametersChanged> for MessageType
impl From<SessionParametersChanged> for MessageType
Source§fn from(v: SessionParametersChanged) -> Self
fn from(v: SessionParametersChanged) -> Self
Converts to this type from the input type.
Source§impl From<SessionUpdated> for MessageType
impl From<SessionUpdated> for MessageType
Source§fn from(v: SessionUpdated) -> Self
fn from(v: SessionUpdated) -> Self
Converts to this type from the input type.
Source§impl From<UpdateCursor> for MessageType
impl From<UpdateCursor> for MessageType
Source§fn from(v: UpdateCursor) -> Self
fn from(v: UpdateCursor) -> Self
Converts to this type from the input type.
Source§impl From<UpdateSession> for MessageType
impl From<UpdateSession> for MessageType
Source§fn from(v: UpdateSession) -> Self
fn from(v: UpdateSession) -> Self
Converts to this type from the input type.
Source§impl From<VideoChunk> for MessageType
impl From<VideoChunk> for MessageType
Source§fn from(v: VideoChunk) -> Self
fn from(v: VideoChunk) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl !Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnwindSafe for MessageType
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