pub struct Zfs { /* private fields */ }
Implementations§
Source§impl Zfs
impl Zfs
pub fn list_from_builder( &self, builder: &ListBuilder, ) -> Result<ZfsList, ZfsError>
pub fn list_basic(&self) -> Result<ZfsList, ZfsError>
pub fn list(&self) -> ListExecutor<'_>
Sourcepub fn destroy(
&self,
flags: BitFlags<DestroyFlags>,
dataset: &str,
) -> Result<Output, ZfsError>
pub fn destroy( &self, flags: BitFlags<DestroyFlags>, dataset: &str, ) -> Result<Output, ZfsError>
NOTE: manual documents that if dataset
is a bookmark, no flags are permitted
pub fn from_env_prefix(prefix: &'static str) -> Self
Sourcepub fn send_resume(
&self,
receive_resume_token: &str,
flags: BitFlags<SendFlags>,
) -> Result<ZfsSend>
pub fn send_resume( &self, receive_resume_token: &str, flags: BitFlags<SendFlags>, ) -> Result<ZfsSend>
Resume sending a stream using receive_resume_token
from the destination filesystem
flags here is constrained to [Penv]
pub fn recv_abort_incomplete(&self, dataset: &str) -> Result<(), ZfsError>
pub fn send( &self, snapname: &str, from: Option<&str>, flags: BitFlags<SendFlags>, ) -> Result<ZfsSend>
pub fn recv( &self, snapname: &str, set_props: &[(&str, &str)], origin: Option<&str>, exclude_props: &[&str], flags: BitFlags<RecvFlags>, ) -> Result<ZfsRecv>
Trait Implementations§
impl Eq for Zfs
impl StructuralPartialEq for Zfs
Auto Trait Implementations§
impl Freeze for Zfs
impl RefUnwindSafe for Zfs
impl Send for Zfs
impl Sync for Zfs
impl Unpin for Zfs
impl UnwindSafe for Zfs
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