pub struct WorktreeLease { /* private fields */ }Expand description
A live tree: what it is called, where it is, and what it costs.
Implementations§
Source§impl WorktreeLease
impl WorktreeLease
pub fn name(&self) -> &WorktreeName
Sourcepub fn disk(&self) -> ByteLen
pub fn disk(&self) -> ByteLen
What the tree occupied when it was opened. status reports this,
which is why it is measured rather than estimated.
Sourcepub fn opened_payload(&self) -> Result<Payload, StorageError>
pub fn opened_payload(&self) -> Result<Payload, StorageError>
The worktree_opened payload: a name and a size, no path. An
absolute path is a fact about this machine, and a history that
carries one does not survive being moved to another.
§Errors
Propagates the payload’s refusal to hold what it was given.
Trait Implementations§
Source§impl Clone for WorktreeLease
impl Clone for WorktreeLease
Source§impl Debug for WorktreeLease
impl Debug for WorktreeLease
impl Eq for WorktreeLease
Source§impl PartialEq for WorktreeLease
impl PartialEq for WorktreeLease
impl StructuralPartialEq for WorktreeLease
Auto Trait Implementations§
impl Freeze for WorktreeLease
impl RefUnwindSafe for WorktreeLease
impl Send for WorktreeLease
impl Sync for WorktreeLease
impl Unpin for WorktreeLease
impl UnsafeUnpin for WorktreeLease
impl UnwindSafe for WorktreeLease
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