pub type ErrorResult = Result<(), Error>;
The return type for IDL operations that can throw DOM exceptions and return ().
()
enum ErrorResult { Ok(()), Err(Error), }
Contains the success value
Contains the error value