pub struct ServerInfo {
pub user_name: Option<String>,
pub host_name: Option<String>,
pub server_version: Option<String>,
pub server_name: Option<String>,
pub sample_spec: Spec,
pub default_sink_name: Option<String>,
pub default_source_name: Option<String>,
pub cookie: u32,
pub channel_map: Map,
}
Fields§
§user_name: Option<String>
User name of the daemon process.
host_name: Option<String>
Host name the daemon is running on.
server_version: Option<String>
Version string of the daemon.
server_name: Option<String>
Server package name (usually “pulseaudio”).
sample_spec: Spec
Default sample specification.
default_sink_name: Option<String>
Name of default sink.
default_source_name: Option<String>
Name of default source.
A random cookie for identifying this instance of PulseAudio.
channel_map: Map
Default channel map.
Trait Implementations§
Source§impl<'a> From<&'a ServerInfo<'a>> for ServerInfo
impl<'a> From<&'a ServerInfo<'a>> for ServerInfo
Source§fn from(info: &'a ServerInfo<'a>) -> Self
fn from(info: &'a ServerInfo<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ServerInfo
impl RefUnwindSafe for ServerInfo
impl Send for ServerInfo
impl Sync for ServerInfo
impl Unpin for ServerInfo
impl UnwindSafe for ServerInfo
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