Find all ended sessions.
(&self)
| 1141 | |
| 1142 | /// Find all ended sessions. |
| 1143 | pub fn find_ended(&self) -> AgentResult<Vec<AgentSession>> { |
| 1144 | let all = self.list()?; |
| 1145 | Ok(all.into_iter().filter(|s| s.is_ended()).collect()) |
| 1146 | } |
| 1147 | |
| 1148 | /// Returns the number of stored session files. |
| 1149 | pub fn count(&self) -> AgentResult<usize> { |