Find all ended sessions.
(&self)
| 612 | |
| 613 | /// Find all ended sessions. |
| 614 | pub fn find_ended(&self) -> AgentResult<Vec<AgentSession>> { |
| 615 | let all = self.list()?; |
| 616 | Ok(all.into_iter().filter(|s| s.is_ended()).collect()) |
| 617 | } |
| 618 | |
| 619 | /// Returns the number of stored session files. |
| 620 | pub fn count(&self) -> AgentResult<usize> { |