remoc icon indicating copy to clipboard operation
remoc copied to clipboard

Ability to return custom errors

Open CowBoy4mH3LL opened this issue 6 months ago • 1 comments

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?

CowBoy4mH3LL avatar Aug 26 '24 12:08 CowBoy4mH3LL