Find all ended sessions.
(&self)
| 584 | |
| 585 | /// Find all ended sessions. |
| 586 | pub fn find_ended(&self) -> AgentResult<Vec<AgentSession>> { |
| 587 | let all = self.list()?; |
| 588 | Ok(all.into_iter().filter(|s| s.is_ended()).collect()) |
| 589 | } |
| 590 | |
| 591 | /// Returns the number of stored session files. |
| 592 | pub fn count(&self) -> AgentResult<usize> { |