#[non_exhaustive]pub struct ResourceBudget {
pub texture_bytes: u64,
pub decoder_sessions: u32,
pub active_decoder_sessions: u32,
}Expand description
Caller-owned resource envelope; zero means the corresponding resource is unavailable.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.texture_bytes: u64Soft GPU texture bytes.
decoder_sessions: u32Maximum concurrent decoder sessions.
active_decoder_sessions: u32Decoder sessions already active in the host.
Implementations§
Trait Implementations§
Source§impl Clone for ResourceBudget
impl Clone for ResourceBudget
impl Copy for ResourceBudget
Source§impl Debug for ResourceBudget
impl Debug for ResourceBudget
impl Eq for ResourceBudget
Source§impl PartialEq for ResourceBudget
impl PartialEq for ResourceBudget
impl StructuralPartialEq for ResourceBudget
Auto Trait Implementations§
impl Freeze for ResourceBudget
impl RefUnwindSafe for ResourceBudget
impl Send for ResourceBudget
impl Sync for ResourceBudget
impl Unpin for ResourceBudget
impl UnsafeUnpin for ResourceBudget
impl UnwindSafe for ResourceBudget
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.