(&self)
| 144 | |
| 145 | impl Device { |
| 146 | fn validate(&self) -> Result<(), Error> { |
| 147 | if self.name.is_empty() { |
| 148 | return Err(Error::Validation("name is not set".into())); |
| 149 | } |
| 150 | Ok(()) |
| 151 | } |
| 152 | |
| 153 | pub fn get_device_session(&self) -> Result<&internal::DeviceSession, Error> { |
| 154 | self.device_session |
no test coverage detected