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
sourceimpl Clone for CacheProperties
impl Clone for CacheProperties
sourcefn clone(&self) -> CacheProperties
fn clone(&self) -> CacheProperties
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CacheProperties
impl Debug for CacheProperties
sourceimpl Default for CacheProperties
impl Default for CacheProperties
sourceimpl PartialEq<CacheProperties> for CacheProperties
impl PartialEq<CacheProperties> for CacheProperties
sourcefn eq(&self, other: &CacheProperties) -> bool
fn eq(&self, other: &CacheProperties) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
sourcefn null_value() -> T
fn null_value() -> T
The none-equivalent value.