(&self)
| 229 | } |
| 230 | |
| 231 | fn next(&self) -> Self { |
| 232 | let GuestConnection { command } = *self; |
| 233 | |
| 234 | if command == u32::MAX { |
| 235 | GuestConnection::default() |
| 236 | } else { |
| 237 | GuestConnection::new(command + 1) |
| 238 | } |
| 239 | } |
| 240 | } |
| 241 | |
| 242 | impl TryFrom<u32> for GuestConnection { |