Trunk methods
(&mut self, trunk: &Trunk)
| 506 | |
| 507 | // Trunk methods |
| 508 | fn put_trunk(&mut self, trunk: &Trunk) -> Result<bool, Self::Error> { |
| 509 | let is_new = !self.trunks.contains_key(&trunk.id()); |
| 510 | self.trunks.insert(trunk.id(), trunk.clone()); |
| 511 | Ok(is_new) |
| 512 | } |
| 513 | |
| 514 | fn get_trunk(&self, id: TrunkId) -> Result<Option<Trunk>, Self::Error> { |
| 515 | Ok(self.trunks.get(&id).cloned()) |
nothing calls this directly
no test coverage detected