pub struct RouteConfig {
pub from: String,
pub to: String,
pub from_channels: Vec<usize>,
pub to_channels: Vec<usize>,
pub gain_db: f32,
pub mute: bool,
}Expand description
[[routes]] — a channel mapping from one device to another.
Channel numbers are stored as usize but represent 1-based physical
channel numbers.
Fields§
§from: String§to: String§from_channels: Vec<usize>§to_channels: Vec<usize>§gain_db: f32§mute: boolTrait Implementations§
Source§impl Clone for RouteConfig
impl Clone for RouteConfig
Source§fn clone(&self) -> RouteConfig
fn clone(&self) -> RouteConfig
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 RouteConfig
impl Debug for RouteConfig
Source§impl<'de> Deserialize<'de> for RouteConfig
impl<'de> Deserialize<'de> for RouteConfig
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 RouteConfig
impl RefUnwindSafe for RouteConfig
impl Send for RouteConfig
impl Sync for RouteConfig
impl Unpin for RouteConfig
impl UnsafeUnpin for RouteConfig
impl UnwindSafe for RouteConfig
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