pub enum VirtiofsCache {
Auto,
Always,
Metadata,
Never,
}Expand description
How a VM caches a virtiofs folder (see Virtiofs::cache).
Variants§
Auto
Metadata and lookups kept a short while, or until they change: Proxmox’s default.
Always
Everything kept: fastest, but another VM’s changes may not show.
Metadata
Metadata kept, data read each time.
Never
Nothing kept: every access goes to the server.
Implementations§
Trait Implementations§
Source§impl Clone for VirtiofsCache
impl Clone for VirtiofsCache
impl Copy for VirtiofsCache
Source§impl Debug for VirtiofsCache
impl Debug for VirtiofsCache
Source§impl Default for VirtiofsCache
impl Default for VirtiofsCache
Source§impl<'de> Deserialize<'de> for VirtiofsCache
impl<'de> Deserialize<'de> for VirtiofsCache
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VirtiofsCache
Source§impl JsonSchema for VirtiofsCache
impl JsonSchema for VirtiofsCache
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for VirtiofsCache
impl PartialEq for VirtiofsCache
Source§impl Serialize for VirtiofsCache
impl Serialize for VirtiofsCache
impl StructuralPartialEq for VirtiofsCache
Auto Trait Implementations§
impl Freeze for VirtiofsCache
impl RefUnwindSafe for VirtiofsCache
impl Send for VirtiofsCache
impl Sync for VirtiofsCache
impl Unpin for VirtiofsCache
impl UnsafeUnpin for VirtiofsCache
impl UnwindSafe for VirtiofsCache
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.