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