Skip to main content

Out

Enum Out 

Source
pub enum Out {
Show 17 variants Hello(Hello), View { dock: Option<Panel>, panel: Option<Panel>, images: Vec<ImageRef>, fullscreen: bool, }, Effect(Effect), Wants(Wants), Frame { slot: u32, key: u64, width: u32, height: u32, pts_us: u64, }, Emit { name: String, payload: Value, }, EmitRequest { id: u64, name: String, payload: Value, timeout_ms: u32, all: bool, }, Respond { seq: u64, value: Value, }, Request { id: u64, call: Call, }, Reply { seq: u64, result: Handled, }, StateSave(Vec<u8>), Subscribe(Listener), Unsubscribe(String), Log { level: LogLevel, text: String, }, Wake, Menu { x: i32, y: i32, entries: Vec<MenuEntry>, }, Hosted(Vec<HostedView>),
}
Expand description

Plugin to host.

Variants§

§

Hello(Hello)

§

View

The view changed (latest wins).

Fields

§panel: Option<Panel>
§images: Vec<ImageRef>
§fullscreen: bool
§

Effect(Effect)

§

Wants(Wants)

Which keys the mode takes now (latest wins). Without one, Mouser guesses from the view: a focused Field or an open Popup takes every key. Once sent, only this decides.

§

Frame

A video frame already in shm slot; the host answers frame.presented.

Fields

§slot: u32
§key: u64
§width: u32
§height: u32
§pts_us: u64
§

Emit

Fields

§name: String
§payload: Value
§

EmitRequest

Fields

§id: u64
§name: String
§payload: Value
§timeout_ms: u32
§all: bool
§

Respond

Answer an EmitRequest delivered to a responder listener.

Fields

§seq: u64
§value: Value
§

Request

Fields

§id: u64
§call: Call
§

Reply

For sync listeners.

Fields

§seq: u64
§result: Handled
§

StateSave(Vec<u8>)

§

Subscribe(Listener)

§

Unsubscribe(String)

§

Log

Fields

§level: LogLevel
§text: String
§

Wake

§

Menu

The context menu for the menu.open event at (x, y) (window pixels; the host places and draws it). Empty entries: no menu. Added in mode-api 1.4 (api 1, additive; last, so older variants keep their encoding).

Fields

§entries: Vec<MenuEntry>
§

Hosted(Vec<HostedView>)

The views and players Mouser runs for the mode (latest wins; empty removes them), drawn over the mode’s dock or panel (crate::hosted). Only when Accepted::features offers them: an older host can’t read it. Added in mode-api 0.4 (api 1, additive; last, so older variants keep their encoding).

Trait Implementations§

Source§

impl Clone for Out

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Out

Source§

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

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

impl<'de> Deserialize<'de> for Out

Source§

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 Out

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl Serialize for Out

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Out

Auto Trait Implementations§

§

impl Forget for Out

§

impl Freeze for Out

§

impl RefUnwindSafe for Out

§

impl Send for Out

§

impl Sync for Out

§

impl Unpin for Out

§

impl UnsafeUnpin for Out

§

impl UnwindSafe for Out

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, dest: *mut u8)

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

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.