pub struct PveAudioConfig {
pub device: PveQemuDeviceEnum,
pub driver: Option<PveDriverEnum>,
}Fields§
§device: PveQemuDeviceEnumConfigure an audio device.
driver: Option<PveDriverEnum>Driver backend for the audio device.
Implementations§
Source§impl PveAudioConfig
impl PveAudioConfig
pub fn new(device: PveQemuDeviceEnum) -> PveAudioConfig
Source§impl PveAudioConfig
impl PveAudioConfig
Sourcepub fn to_shorthand(&self) -> String
pub fn to_shorthand(&self) -> String
Serialise this PveAudioConfig into Proxmox’s CLI-style shorthand
string (key=value,…). The property marked x-pve-default-key
is emitted positionally without a key= prefix; aliases collapse
multiple property names to the same wire key.
Example: PveAudioConfig
→ "virtio,bridge=vmbr0"
Trait Implementations§
Source§impl Clone for PveAudioConfig
impl Clone for PveAudioConfig
Source§fn clone(&self) -> PveAudioConfig
fn clone(&self) -> PveAudioConfig
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 PveAudioConfig
impl Debug for PveAudioConfig
Source§impl Default for PveAudioConfig
impl Default for PveAudioConfig
Source§fn default() -> PveAudioConfig
fn default() -> PveAudioConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PveAudioConfig
impl<'de> Deserialize<'de> for PveAudioConfig
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
Source§impl PartialEq for PveAudioConfig
impl PartialEq for PveAudioConfig
Source§fn eq(&self, other: &PveAudioConfig) -> bool
fn eq(&self, other: &PveAudioConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PveAudioConfig
impl Serialize for PveAudioConfig
impl StructuralPartialEq for PveAudioConfig
Auto Trait Implementations§
impl Freeze for PveAudioConfig
impl RefUnwindSafe for PveAudioConfig
impl Send for PveAudioConfig
impl Sync for PveAudioConfig
impl Unpin for PveAudioConfig
impl UnsafeUnpin for PveAudioConfig
impl UnwindSafe for PveAudioConfig
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