Find all ended sessions.
(&self)
| 628 | |
| 629 | /// Find all ended sessions. |
| 630 | pub fn find_ended(&self) -> AgentResult<Vec<AgentSession>> { |
| 631 | let all = self.list()?; |
| 632 | Ok(all.into_iter().filter(|s| s.is_ended()).collect()) |
| 633 | } |
| 634 | |
| 635 | /// Returns the number of stored session files. |
| 636 | pub fn count(&self) -> AgentResult<usize> { |