Enum CachingMode
#[repr(i32)]pub enum CachingMode {
Disabled = 0,
Enabled = 1,
Automatic = 2,
}Expand description
Caching modes for nodes.
Variants§
Disabled = 0
Caching disabled.
Enabled = 1
Caching enabled.
Automatic = 2
Automatic caching. Kanzi invalidates the cache automatically when the node or its descendants change.
Implementations§
§impl CachingMode
impl CachingMode
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> CachingMode
Trait Implementations§
§impl Clone for CachingMode
impl Clone for CachingMode
§fn clone(&self) -> CachingMode
fn clone(&self) -> CachingMode
Returns a duplicate 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 more§impl Debug for CachingMode
impl Debug for CachingMode
§impl Display for CachingMode
impl Display for CachingMode
§impl PartialEq for CachingMode
impl PartialEq for CachingMode
§impl VariantConstraint for CachingMode
impl VariantConstraint for CachingMode
§type DataArg<'a> = CachingMode
type DataArg<'a> = CachingMode
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = CachingMode
type RetArg = CachingMode
§fn as_arg(&self) -> <CachingMode as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <CachingMode as VariantConstraint>::DataArg<'_>
impl Copy for CachingMode
impl Eq for CachingMode
impl PropertyTypeConstraint for CachingMode
impl StructuralPartialEq for CachingMode
Auto Trait Implementations§
impl Freeze for CachingMode
impl RefUnwindSafe for CachingMode
impl Send for CachingMode
impl Sync for CachingMode
impl Unpin for CachingMode
impl UnwindSafe for CachingMode
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