pub struct LibraryConfig { /* private fields */ }Expand description
A builder to configure Synthizer initialization with non-default values. To
initialize, call .initialize().
Implementations§
Source§impl LibraryConfig
impl LibraryConfig
pub fn new() -> LibraryConfig
Sourcepub fn log_to_stderr(&mut self)
pub fn log_to_stderr(&mut self)
Log to STDERR.
Sourcepub fn load_libsndfile<P: AsRef<Path>>(&mut self, path: P) -> Result<()>
pub fn load_libsndfile<P: AsRef<Path>>(&mut self, path: P) -> Result<()>
Load Libsndfile from the specified path. Errors if the path isn’t valid UTF8.
Sourcepub fn initialize(self) -> Result<InitializationGuard>
pub fn initialize(self) -> Result<InitializationGuard>
Initialize Synthizer.
Trait Implementations§
Source§impl Default for LibraryConfig
impl Default for LibraryConfig
Source§fn default() -> LibraryConfig
fn default() -> LibraryConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LibraryConfig
impl RefUnwindSafe for LibraryConfig
impl !Send for LibraryConfig
impl !Sync for LibraryConfig
impl Unpin for LibraryConfig
impl UnwindSafe for LibraryConfig
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