pub struct Zpool { /* private fields */ }
Implementations
sourceimpl Zpool
impl Zpool
pub fn new(raw: *mut zpool_handle_t) -> Zpool
pub fn name(&self) -> CString
pub fn state(&self) -> pool_state_t
pub fn state_name(&self) -> CString
pub fn prop_int(&self, prop: Type) -> u64
pub fn prop_str(&self, prop: Type) -> Result<CString, LibZfsError>
pub fn health(&self) -> Result<CString, LibZfsError>
pub fn hostname(&self) -> Result<CString, LibZfsError>
pub fn hostid(&self) -> Result<u64, LibZfsError>
pub fn guid(&self) -> u64
pub fn guid_hex(&self) -> String
pub fn size(&self) -> u64
pub fn read_only(&self) -> bool
pub fn get_config(&self) -> &mut NvListRef
pub fn vdev_tree(&self) -> Result<VDev, LibZfsError>
pub fn datasets(&self) -> Result<Vec<Zfs>, LibZfsError>
pub fn disable_datasets(&self) -> Result<(), LibZfsError>
pub fn export(&self) -> Result<(), LibZfsError>
Trait Implementations
impl StructuralPartialEq for Zpool
Auto Trait Implementations
impl RefUnwindSafe for Zpool
impl !Send for Zpool
impl !Sync for Zpool
impl Unpin for Zpool
impl UnwindSafe for Zpool
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