#[non_exhaustive]pub enum CacheProperties {
Yes,
No,
Lazily,
}
Expand description
The properties caching mode.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Yes
Cache properties. The properties will be cached upfront as part of the proxy creation.
No
Don’t cache properties.
Lazily
Cache properties but only populate the cache on the first read of a property (default).
Trait Implementations§
source§impl Clone for CacheProperties
impl Clone for CacheProperties
source§fn clone(&self) -> CacheProperties
fn clone(&self) -> CacheProperties
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 CacheProperties
impl Debug for CacheProperties
source§impl Default for CacheProperties
impl Default for CacheProperties
source§fn default() -> CacheProperties
fn default() -> CacheProperties
Returns the “default value” for a type. Read more
source§impl PartialEq for CacheProperties
impl PartialEq for CacheProperties
impl Copy for CacheProperties
impl Eq for CacheProperties
impl StructuralPartialEq for CacheProperties
Auto Trait Implementations§
impl Freeze for CacheProperties
impl RefUnwindSafe for CacheProperties
impl Send for CacheProperties
impl Sync for CacheProperties
impl Unpin for CacheProperties
impl UnwindSafe for CacheProperties
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)