pub struct Qcow2DevParams { /* private fields */ }Implementations§
Source§impl Qcow2DevParams
impl Qcow2DevParams
pub fn new( bs_bits: u8, rb_cache: Option<(u8, usize)>, l2_cache: Option<(u8, usize)>, ro: bool, dio: bool, ) -> Self
pub fn get_bs_bits(&self) -> u8
pub fn set_read_only(&self, ro: bool)
pub fn is_direct_io(&self) -> bool
pub fn is_read_only(&self) -> bool
pub fn mark_backing_dev(&self, backing: Option<bool>)
pub fn is_backing_dev(&self) -> bool
Trait Implementations§
Source§impl Clone for Qcow2DevParams
impl Clone for Qcow2DevParams
Source§fn clone(&self) -> Qcow2DevParams
fn clone(&self) -> Qcow2DevParams
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 moreSource§impl Debug for Qcow2DevParams
impl Debug for Qcow2DevParams
Source§impl Default for Qcow2DevParams
impl Default for Qcow2DevParams
Source§fn default() -> Qcow2DevParams
fn default() -> Qcow2DevParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for Qcow2DevParams
impl !RefUnwindSafe for Qcow2DevParams
impl Send for Qcow2DevParams
impl !Sync for Qcow2DevParams
impl Unpin for Qcow2DevParams
impl UnwindSafe for Qcow2DevParams
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