Skip to main content

Message

Enum Message 

Source
pub enum Message {
Show 32 variants Sandboxed { mechanism: String, }, Hello { magic: [u8; 4], major: u16, minor: u16, }, Load { path: String, format: PluginFormat, class_id: Option<[u8; 16]>, }, Configure { rate: u32, max_frames: u32, in_channels: u16, out_channels: u16, }, Editor(EditorAction), EditorStatus(EditorStatus), EditorImage(EditorImage), Prepare(ProcessingSetup), Describe, Features(Capabilities), Activate, SetState { blob: Vec<u8>, }, GetState, OpenEditor, OpenEditorIn { parent: ParentWindow, }, CloseEditor, ListParameters { start: u32, count: u16, }, Parameters { total: u32, entries: Vec<Parameter>, }, SetParameter { id: u32, value: f64, }, RequestError { code: u32, text: String, }, Shutdown, Scan { path: String, }, Loaded { name: String, vendor: String, latency_frames: u32, inputs: Vec<BusInfo>, outputs: Vec<BusInfo>, }, Classes { entries: Vec<ClassInfo>, }, LatencyChanged { frames: u32, }, State { blob: Vec<u8>, }, ParamsChanged, Fault { code: u32, text: String, }, Ack, EditorClosed, EditorResized { width: u32, height: u32, }, ParameterEdit { id: u32, phase: EditPhase, value: f64, },
}

Variants§

§

Sandboxed

Sent before Hello only when an OS sandbox was requested and installed.

Fields

§mechanism: String
§

Hello

Fields

§magic: [u8; 4]
§major: u16
§minor: u16
§

Load

Fields

§path: String
§class_id: Option<[u8; 16]>
§

Configure

Fields

§rate: u32
§max_frames: u32
§in_channels: u16
§out_channels: u16
§

Editor(EditorAction)

§

EditorStatus(EditorStatus)

§

EditorImage(EditorImage)

§

Prepare(ProcessingSetup)

§

Describe

§

Features(Capabilities)

§

Activate

§

SetState

Fields

§blob: Vec<u8>
§

GetState

§

OpenEditor

§

OpenEditorIn

Fields

§

CloseEditor

§

ListParameters

Fields

§start: u32
§count: u16
§

Parameters

Fields

§total: u32
§entries: Vec<Parameter>
§

SetParameter

Fields

§id: u32
§value: f64
§

RequestError

Fields

§code: u32
§text: String
§

Shutdown

§

Scan

Fields

§path: String
§

Loaded

Fields

§name: String
§vendor: String
§latency_frames: u32
§inputs: Vec<BusInfo>
§outputs: Vec<BusInfo>
§

Classes

Fields

§entries: Vec<ClassInfo>
§

LatencyChanged

Fields

§frames: u32
§

State

Fields

§blob: Vec<u8>
§

ParamsChanged

§

Fault

Fields

§code: u32
§text: String
§

Ack

The reply to a request that returns no data (Configure, Activate, SetState, OpenEditor). It carries the request’s number.

§

EditorClosed

The editor window was closed by the user.

§

EditorResized

Fields

§width: u32
§height: u32
§

ParameterEdit

Fields

§id: u32
§value: f64

Implementations§

Source§

impl Message

Source

pub fn hello() -> Self

Source

pub fn kind(&self) -> u16

The wire kind number, for diagnostics.

Trait Implementations§

Source§

impl Clone for Message

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 Message

Source§

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

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

impl PartialEq for Message

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 StructuralPartialEq for Message

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, 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> 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.