Struct fmod::studio::SystemBuilder
source · pub struct SystemBuilder { /* private fields */ }Expand description
A builder for creating and initializing a System.
Handles setting values that can only be set before initialization for you.
Implementations§
source§impl SystemBuilder
impl SystemBuilder
sourcepub unsafe fn new() -> Result<Self>
pub unsafe fn new() -> Result<Self>
Creates a new SystemBuilder.
§Safety
Calling either of this function concurrently with any FMOD Studio API function (including this function) may cause undefined behavior.
External synchronization must be used if calls to SystemBuilder::new or System::release could overlap other FMOD Studio API calls.
All other FMOD Studio API functions are thread safe and may be called freely from any thread unless otherwise documented.
pub fn settings(&mut self, settings: &AdvancedSettings) -> Result<&mut Self>
pub fn build( self, max_channels: c_int, studio_flags: InitFlags, flags: InitFlags, ) -> Result<System>
pub fn core_builder(&mut self) -> &mut SystemBuilder
Trait Implementations§
impl Send for SystemBuilder
impl Sync for SystemBuilder
Auto Trait Implementations§
impl Freeze for SystemBuilder
impl RefUnwindSafe for SystemBuilder
impl Unpin for SystemBuilder
impl UnwindSafe for SystemBuilder
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