Is there a way to chain a Result and an Option with ? so that the following code works? What would be the return type? I am happy to return some kind of an Error if the option is None.
struct Status {
serial: Option<&'static str>;
}
fn serial(status_mutex: Mutex<Option<Status>>) -> Result<&'static str, ...> {
status_mutex.lock()?.serial?
}