pub struct MemoryUsage {
pub exclusive: c_int,
pub inclusive: c_int,
pub sample_data: c_int,
}
Available on crate feature
studio
only.Expand description
Memory usage statistics.
Memory usage exclusive
and inclusive
values do not include sample data loaded in memory because sample data is a shared resource.
Streaming sample data is not a shared resource and is included in the exclusive and inclusive
values.
Fields§
§exclusive: c_int
Size of memory belonging to the bus or event instance.
inclusive: c_int
Size of memory belonging exclusively to the bus or event plus the inclusive memory sizes of all buses and event instances which route into it.
sample_data: c_int
Size of shared sample memory referenced by the bus or event instance, inclusive of all sample memory referenced by all buses and event instances which route into it.
Trait Implementations§
Source§impl Clone for MemoryUsage
impl Clone for MemoryUsage
Source§fn clone(&self) -> MemoryUsage
fn clone(&self) -> MemoryUsage
Returns a copy 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 MemoryUsage
impl Debug for MemoryUsage
Source§impl From<FMOD_STUDIO_MEMORY_USAGE> for MemoryUsage
impl From<FMOD_STUDIO_MEMORY_USAGE> for MemoryUsage
Source§fn from(value: FMOD_STUDIO_MEMORY_USAGE) -> Self
fn from(value: FMOD_STUDIO_MEMORY_USAGE) -> Self
Converts to this type from the input type.
Source§impl From<MemoryUsage> for FMOD_STUDIO_MEMORY_USAGE
impl From<MemoryUsage> for FMOD_STUDIO_MEMORY_USAGE
Source§fn from(value: MemoryUsage) -> Self
fn from(value: MemoryUsage) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MemoryUsage
impl PartialEq for MemoryUsage
impl Copy for MemoryUsage
impl Eq for MemoryUsage
impl StructuralPartialEq for MemoryUsage
Auto Trait Implementations§
impl Freeze for MemoryUsage
impl RefUnwindSafe for MemoryUsage
impl Send for MemoryUsage
impl Sync for MemoryUsage
impl Unpin for MemoryUsage
impl UnwindSafe for MemoryUsage
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