pub struct ServerInfo<'a> {
pub user_name: Option<Cow<'a, str>>,
pub host_name: Option<Cow<'a, str>>,
pub server_version: Option<Cow<'a, str>>,
pub server_name: Option<Cow<'a, str>>,
pub sample_spec: Spec,
pub default_sink_name: Option<Cow<'a, str>>,
pub default_source_name: Option<Cow<'a, str>>,
pub cookie: u32,
pub channel_map: Map,
}
Expand description
Server information.
Please note that this structure can be extended as part of evolutionary API updates at any time in any new release.
Fields§
§user_name: Option<Cow<'a, str>>
User name of the daemon process.
host_name: Option<Cow<'a, str>>
Host name the daemon is running on.
server_version: Option<Cow<'a, str>>
Version string of the daemon.
server_name: Option<Cow<'a, str>>
Server package name (usually “pulseaudio”).
sample_spec: Spec
Default sample specification.
default_sink_name: Option<Cow<'a, str>>
Name of default sink.
default_source_name: Option<Cow<'a, str>>
Name of default source.
A random cookie for identifying this instance of PulseAudio.
channel_map: Map
Default channel map.
Implementations§
Source§impl ServerInfo<'_>
impl ServerInfo<'_>
Sourcepub fn to_owned(&self) -> ServerInfo<'static>
pub fn to_owned(&self) -> ServerInfo<'static>
Creates a copy with owned data.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ServerInfo<'a>
impl<'a> RefUnwindSafe for ServerInfo<'a>
impl<'a> Send for ServerInfo<'a>
impl<'a> Sync for ServerInfo<'a>
impl<'a> Unpin for ServerInfo<'a>
impl<'a> UnwindSafe for ServerInfo<'a>
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