pub enum ResourceStoragePolicy {
Permanent,
Volatile,
Unknown(u32),
}Expand description
Whether the library keeps a loaded resource in its cache.
See mln_resource_storage_policy in the
C API reference.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ResourceStoragePolicy
impl Clone for ResourceStoragePolicy
Source§fn clone(&self) -> ResourceStoragePolicy
fn clone(&self) -> ResourceStoragePolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResourceStoragePolicy
Source§impl Debug for ResourceStoragePolicy
impl Debug for ResourceStoragePolicy
Source§impl Default for ResourceStoragePolicy
impl Default for ResourceStoragePolicy
impl Eq for ResourceStoragePolicy
Source§impl Hash for ResourceStoragePolicy
impl Hash for ResourceStoragePolicy
Source§impl PartialEq for ResourceStoragePolicy
impl PartialEq for ResourceStoragePolicy
impl StructuralPartialEq for ResourceStoragePolicy
Auto Trait Implementations§
impl Freeze for ResourceStoragePolicy
impl RefUnwindSafe for ResourceStoragePolicy
impl Send for ResourceStoragePolicy
impl Sync for ResourceStoragePolicy
impl Unpin for ResourceStoragePolicy
impl UnsafeUnpin for ResourceStoragePolicy
impl UnwindSafe for ResourceStoragePolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more