Trunk methods
(&mut self, trunk: &Trunk)
| 454 | |
| 455 | // Trunk methods |
| 456 | fn put_trunk(&mut self, trunk: &Trunk) -> Result<bool, Self::Error> { |
| 457 | let is_new = !self.trunks.contains_key(&trunk.id()); |
| 458 | self.trunks.insert(trunk.id(), trunk.clone()); |
| 459 | Ok(is_new) |
| 460 | } |
| 461 | |
| 462 | fn get_trunk(&self, id: TrunkId) -> Result<Option<Trunk>, Self::Error> { |
| 463 | Ok(self.trunks.get(&id).cloned()) |
nothing calls this directly
no test coverage detected