pub struct Libzfs { /* private fields */ }
Implementations
sourceimpl Libzfs
impl Libzfs
pub fn new() -> Libzfs
pub fn pool_by_name(&mut self, name: &str) -> Option<Zpool>
pub fn dataset_by_name(&mut self, name: &str) -> Option<Zfs>
pub fn find_importable_pools(&mut self) -> NvList
pub fn import_all(&mut self, nvl: &NvList) -> Result<Vec<()>, LibZfsError>
pub fn export_all(&mut self, pools: &[Zpool]) -> Result<Vec<()>, LibZfsError>
pub fn get_imported_pools(&mut self) -> Result<Vec<Zpool>, LibZfsError>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Libzfs
impl !Send for Libzfs
impl !Sync for Libzfs
impl Unpin for Libzfs
impl UnwindSafe for Libzfs
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more