Skip to content

Commit

Permalink
rust: document used_disk_space
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Mar 4, 2024
1 parent 6d6ee2d commit ab55a05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rust/agama-lib/src/software/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ impl<'a> SoftwareClient<'a> {
}
}

/// Returns the required space for installing the selected patterns.
///
/// It returns a formatted string including the size and the unit.
pub async fn used_disk_space(&self) -> Result<String, ServiceError> {
Ok(self.software_proxy.used_disk_space().await?)
}
Expand Down

0 comments on commit ab55a05

Please sign in to comment.