pub struct SpeakerConfig {
pub speakers: Vec<Speaker>,
pub device: String,
pub preset: String,
pub biamp_default: bool,
}Fields§
§speakers: Vec<Speaker>§device: String§preset: String§biamp_default: boolImplementations§
Source§impl SpeakerConfig
impl SpeakerConfig
pub fn to_json(&self) -> PyJson
pub fn from_json(value: PyJson) -> Result<Self, ProjectError>
pub fn from_preset( name: &str, device: &str, biamp: bool, ) -> Result<Self, ProjectError>
pub fn roles(&self) -> Vec<&str>
pub fn sub_count(&self) -> usize
pub fn used_outs(&self) -> BTreeSet<i64>
pub fn next_free_out(&self) -> i64
pub fn groups(&self) -> Vec<(&'static str, Vec<&Speaker>)>
pub fn set_sub_count(&mut self, n: i64)
pub fn renumber(&mut self)
pub fn set_speaker( &mut self, index: usize, role: Option<String>, size: Option<String>, band_index: Option<usize>, out: Option<i64>, pol: Option<String>, ) -> Result<(), ProjectError>
pub fn add_speaker(&mut self) -> Result<(), ProjectError>
pub fn remove_speaker(&mut self, index: usize) -> Result<(), ProjectError>
pub fn validation_notices(&self) -> Vec<Notice>
pub fn validate(&self) -> Vec<String>
Trait Implementations§
Source§impl Clone for SpeakerConfig
impl Clone for SpeakerConfig
Source§impl Debug for SpeakerConfig
impl Debug for SpeakerConfig
Source§impl Default for SpeakerConfig
impl Default for SpeakerConfig
impl Eq for SpeakerConfig
Source§impl PartialEq for SpeakerConfig
impl PartialEq for SpeakerConfig
impl StructuralPartialEq for SpeakerConfig
Auto Trait Implementations§
impl Freeze for SpeakerConfig
impl RefUnwindSafe for SpeakerConfig
impl Send for SpeakerConfig
impl Sync for SpeakerConfig
impl Unpin for SpeakerConfig
impl UnsafeUnpin for SpeakerConfig
impl UnwindSafe for SpeakerConfig
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