pub struct AttachOptions<'d> { /* private fields */ }
Implementations§
Source§impl AttachOptions<'_>
impl AttachOptions<'_>
pub fn offset(self, offset: u64) -> Self
pub fn size_limit(self, size_limit: u64) -> Self
pub fn read_only(self, read_only: bool) -> Self
pub fn autoclear(self, autoclear: bool) -> Self
pub fn part_scan(self, part_scan: bool) -> Self
pub fn set_direct_io(self, direct_io: bool) -> Self
pub fn direct_io(&self) -> bool
pub fn attach(&self, backing_file: impl AsRef<Path>) -> Result<()>
pub fn attach_fd(&self, backing_file_fd: impl AsRawFd) -> Result<()>
Auto Trait Implementations§
impl<'d> Freeze for AttachOptions<'d>
impl<'d> RefUnwindSafe for AttachOptions<'d>
impl<'d> Send for AttachOptions<'d>
impl<'d> Sync for AttachOptions<'d>
impl<'d> Unpin for AttachOptions<'d>
impl<'d> UnwindSafe for AttachOptions<'d>
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