Struct synthizer::LibraryConfig
source · [−]pub struct LibraryConfig { /* private fields */ }
Expand description
A builder to configure Synthizer initialization with non-default values. To
initialize, call .initialize()
.
Implementations
sourceimpl 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
sourceimpl Default for LibraryConfig
impl Default for LibraryConfig
sourcefn default() -> LibraryConfig
fn default() -> LibraryConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for LibraryConfig
impl !Send for LibraryConfig
impl !Sync for LibraryConfig
impl Unpin for LibraryConfig
impl UnwindSafe for LibraryConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more