pub struct Qcow2Info { /* private fields */ }Expand description
all readable Qcow2 info, make it into single cache line
Implementations§
Source§impl Qcow2Info
impl Qcow2Info
pub fn new(h: &Qcow2Header, p: &Qcow2DevParams) -> Qcow2Result<Qcow2Info>
pub fn rb_entries(&self) -> usize
pub fn l2_entries(&self) -> usize
pub fn virtual_size(&self) -> u64
pub fn in_cluster_offset(&self, offset: u64) -> usize
pub fn cluster_size(&self) -> usize
pub fn cluster_bits(&self) -> usize
pub fn refcount_order(&self) -> u8
pub fn is_back_file(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Qcow2Info
impl RefUnwindSafe for Qcow2Info
impl Send for Qcow2Info
impl Sync for Qcow2Info
impl Unpin for Qcow2Info
impl UnwindSafe for Qcow2Info
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