pub trait FidlCompatible<F>: Sized {
type FromError;
type IntoError;
// Required methods
fn try_from_fidl(fidl: F) -> Result<Self, Self::FromError>;
fn try_into_fidl(self) -> Result<F, Self::IntoError>;
}
Expand description
A type which can be converted to and from a FIDL type F
.
Required Associated Types§
Required Methods§
fn try_from_fidl(fidl: F) -> Result<Self, Self::FromError>
fn try_into_fidl(self) -> Result<F, Self::IntoError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.