#[repr(u32)]pub enum LoadingState {
Unloading = 0,
Unloaded = 1,
Loading = 2,
Loaded = 3,
Error(Error),
}
Available on crate feature
studio
only.Expand description
Loading state of various objects.
Variants§
Unloading = 0
Currently unloading.
Unloaded = 1
Not loaded.
Loading = 2
Loading in progress.
Loaded = 3
Loaded and ready to play.
Error(Error)
Failed to load.
Implementations§
Source§impl LoadingState
impl LoadingState
Sourcepub fn try_from_ffi(
value: FMOD_STUDIO_LOADING_STATE,
error: Option<Error>,
) -> Result<Self>
pub fn try_from_ffi( value: FMOD_STUDIO_LOADING_STATE, error: Option<Error>, ) -> Result<Self>
Try creating a LoadingState
from its FFI equivalent.
Trait Implementations§
Source§impl Clone for LoadingState
impl Clone for LoadingState
Source§fn clone(&self) -> LoadingState
fn clone(&self) -> LoadingState
Returns a duplicate of the value. Read more
1.0.0 · 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 LoadingState
impl Debug for LoadingState
Source§impl PartialEq for LoadingState
impl PartialEq for LoadingState
impl Copy for LoadingState
impl Eq for LoadingState
impl StructuralPartialEq for LoadingState
Auto Trait Implementations§
impl Freeze for LoadingState
impl RefUnwindSafe for LoadingState
impl Send for LoadingState
impl Sync for LoadingState
impl Unpin for LoadingState
impl UnwindSafe for LoadingState
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