implement list indexes

This commit is contained in:
mpostma 2021-02-03 17:44:20 +01:00
parent 482f734e53
commit d43dc4824c
No known key found for this signature in database
GPG key ID: CBC8A7C1D7A28C3A
6 changed files with 120 additions and 26 deletions

View file

@ -134,6 +134,13 @@ impl<M, N, E> UpdateStatus<M, N, E> {
UpdateStatus::Failed(u) => u.id(),
}
}
pub fn processed(&self) -> Option<&Processed<M, N>> {
match self {
UpdateStatus::Processed(p) => Some(p),
_ => None,
}
}
}
impl<M, N, E> From<Pending<M>> for UpdateStatus<M, N, E> {