(&mut self, os: &Os)
| 66 | |
| 67 | impl FsRead { |
| 68 | pub async fn validate(&mut self, os: &Os) -> Result<()> { |
| 69 | if self.operations.is_empty() { |
| 70 | bail!("At least one operation must be provided"); |
| 71 | } |
| 72 | for op in &mut self.operations { |
| 73 | op.validate(os).await?; |
| 74 | } |
| 75 | Ok(()) |
| 76 | } |
| 77 | |
| 78 | pub async fn queue_description(&self, os: &Os, updates: &mut impl Write) -> Result<()> { |
| 79 | if self.operations.len() == 1 { |