pub struct AudioAppView {
pub pid: u32,
pub bundle_id: String,
pub display_name: String,
pub icon_png_bytes: Vec<u8>,
}Expand description
View-model for the per-app picker (M-AUDIO-SYS.2 / AUT-282).
Mirrors [media::sck_audio::AudioApp] but lives on the shell
crate so the IPC schema is owned here, not in media.
Fields§
§pid: u32Process identifier observed at enumeration time. The Leptos
side persists bundle_id for cross-restart durability, not
pid.
bundle_id: StringBundle identifier (e.g. "com.spotify.client").
display_name: StringHuman-readable display name ("Spotify").
icon_png_bytes: Vec<u8>32×32 PNG icon bytes. Empty in v0; populated in M-AUDIO-SYS.1.1.
Trait Implementations§
Source§impl Clone for AudioAppView
impl Clone for AudioAppView
Source§fn clone(&self) -> AudioAppView
fn clone(&self) -> AudioAppView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AudioAppView
impl Debug for AudioAppView
Source§impl<'de> Deserialize<'de> for AudioAppView
impl<'de> Deserialize<'de> for AudioAppView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AudioAppView
impl RefUnwindSafe for AudioAppView
impl Send for AudioAppView
impl Sync for AudioAppView
impl Unpin for AudioAppView
impl UnsafeUnpin for AudioAppView
impl UnwindSafe for AudioAppView
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more