Enum nbdkit::CacheFlags
source · #[repr(i32)]pub enum CacheFlags {
None,
Emulate,
Native,
}
Expand description
Return values for Server::can_cache
Variants§
None
Cache support is not advertised to the client.
Emulate
Caching is emulated by the server calling Server::read_at
and
ignoring the results.
Native
The Server::cache
callback will be used.
Trait Implementations§
source§impl From<CacheFlags> for i32
impl From<CacheFlags> for i32
source§fn from(cf: CacheFlags) -> Self
fn from(cf: CacheFlags) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for CacheFlags
impl Send for CacheFlags
impl Sync for CacheFlags
impl Unpin for CacheFlags
impl UnwindSafe for CacheFlags
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