Enum zbus::CacheProperties
source · #[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§impl PartialEq<CacheProperties> for CacheProperties
impl PartialEq<CacheProperties> for CacheProperties
source§fn eq(&self, other: &CacheProperties) -> bool
fn eq(&self, other: &CacheProperties) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CacheProperties
impl Eq for CacheProperties
impl StructuralEq for CacheProperties
impl StructuralPartialEq for CacheProperties
Auto Trait Implementations§
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.