You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say I have a custom error SError{message:String} and I implement From<std:io:Error> on it.
Now, from a function, say, fn(&self) -> Result<(),SError> in an rtc::remote labelled trait, I get an std:io:error as a result of calling await on some other async function.
Even if I have implemented the From cast from Error to SError, it does not seem to be able to cast between the output Result forms.
Any idea why?
The text was updated successfully, but these errors were encountered:
Say I have a custom error
SError{message:String}
and I implementFrom<std:io:Error>
on it.Now, from a function, say,
fn(&self) -> Result<(),SError>
in anrtc::remote
labelled trait, I get anstd:io:error
as a result of callingawait
on some other async function.Even if I have implemented the
From
cast fromError
toSError
, it does not seem to be able to cast between the output Result forms.Any idea why?
The text was updated successfully, but these errors were encountered: