mm_protocol

Enum MessageType

Source
#[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)

§

GamepadUnavailable(GamepadUnavailable)

§

GamepadMotion(GamepadMotion)

§

GamepadInput(GamepadInput)

Trait Implementations§

Source§

impl Clone for MessageType

Source§

fn clone(&self) -> MessageType

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MessageType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for MessageType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<ApplicationImage> for MessageType

Source§

fn from(v: ApplicationImage) -> Self

Converts to this type from the input type.
Source§

impl From<ApplicationList> for MessageType

Source§

fn from(v: ApplicationList) -> Self

Converts to this type from the input type.
Source§

impl From<Attach> for MessageType

Source§

fn from(v: Attach) -> Self

Converts to this type from the input type.
Source§

impl From<Attached> for MessageType

Source§

fn from(v: Attached) -> Self

Converts to this type from the input type.
Source§

impl From<AudioChunk> for MessageType

Source§

fn from(v: AudioChunk) -> Self

Converts to this type from the input type.
Source§

impl From<Detach> for MessageType

Source§

fn from(v: Detach) -> Self

Converts to this type from the input type.
Source§

impl From<EndSession> for MessageType

Source§

fn from(v: EndSession) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for MessageType

Source§

fn from(v: Error) -> Self

Converts to this type from the input type.
Source§

impl From<FetchApplicationImage> for MessageType

Source§

fn from(v: FetchApplicationImage) -> Self

Converts to this type from the input type.
Source§

impl From<GamepadAvailable> for MessageType

Source§

fn from(v: GamepadAvailable) -> Self

Converts to this type from the input type.
Source§

impl From<GamepadInput> for MessageType

Source§

fn from(v: GamepadInput) -> Self

Converts to this type from the input type.
Source§

impl From<GamepadMotion> for MessageType

Source§

fn from(v: GamepadMotion) -> Self

Converts to this type from the input type.
Source§

impl From<GamepadUnavailable> for MessageType

Source§

fn from(v: GamepadUnavailable) -> Self

Converts to this type from the input type.
Source§

impl From<KeepAlive> for MessageType

Source§

fn from(v: KeepAlive) -> Self

Converts to this type from the input type.
Source§

impl From<KeyboardInput> for MessageType

Source§

fn from(v: KeyboardInput) -> Self

Converts to this type from the input type.
Source§

impl From<LaunchSession> for MessageType

Source§

fn from(v: LaunchSession) -> Self

Converts to this type from the input type.
Source§

impl From<ListApplications> for MessageType

Source§

fn from(v: ListApplications) -> Self

Converts to this type from the input type.
Source§

impl From<ListSessions> for MessageType

Source§

fn from(v: ListSessions) -> Self

Converts to this type from the input type.
Source§

impl From<LockPointer> for MessageType

Source§

fn from(v: LockPointer) -> Self

Converts to this type from the input type.
Source§

impl From<PointerEntered> for MessageType

Source§

fn from(v: PointerEntered) -> Self

Converts to this type from the input type.
Source§

impl From<PointerInput> for MessageType

Source§

fn from(v: PointerInput) -> Self

Converts to this type from the input type.
Source§

impl From<PointerLeft> for MessageType

Source§

fn from(v: PointerLeft) -> Self

Converts to this type from the input type.
Source§

impl From<PointerMotion> for MessageType

Source§

fn from(v: PointerMotion) -> Self

Converts to this type from the input type.
Source§

impl From<PointerScroll> for MessageType

Source§

fn from(v: PointerScroll) -> Self

Converts to this type from the input type.
Source§

impl From<RelativePointerMotion> for MessageType

Source§

fn from(v: RelativePointerMotion) -> Self

Converts to this type from the input type.
Source§

impl From<ReleasePointer> for MessageType

Source§

fn from(v: ReleasePointer) -> Self

Converts to this type from the input type.
Source§

impl From<RequestVideoRefresh> for MessageType

Source§

fn from(v: RequestVideoRefresh) -> Self

Converts to this type from the input type.
Source§

impl From<SessionEnded> for MessageType

Source§

fn from(v: SessionEnded) -> Self

Converts to this type from the input type.
Source§

impl From<SessionLaunched> for MessageType

Source§

fn from(v: SessionLaunched) -> Self

Converts to this type from the input type.
Source§

impl From<SessionList> for MessageType

Source§

fn from(v: SessionList) -> Self

Converts to this type from the input type.
Source§

impl From<SessionParametersChanged> for MessageType

Source§

fn from(v: SessionParametersChanged) -> Self

Converts to this type from the input type.
Source§

impl From<SessionUpdated> for MessageType

Source§

fn from(v: SessionUpdated) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateCursor> for MessageType

Source§

fn from(v: UpdateCursor) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateSession> for MessageType

Source§

fn from(v: UpdateSession) -> Self

Converts to this type from the input type.
Source§

impl From<VideoChunk> for MessageType

Source§

fn from(v: VideoChunk) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for MessageType

Source§

fn eq(&self, other: &MessageType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for MessageType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.