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".
Implementations on Foreign Types§
Source§impl FidlCompatible<Ipv4Address> for Ipv4Addr
Available on Fuchsia only.
impl FidlCompatible<Ipv4Address> for Ipv4Addr
Available on Fuchsia only.
Implementors§
Source§impl FidlCompatible<NodeTypes> for NodeType
Available on Fuchsia only.
impl FidlCompatible<NodeTypes> for NodeType
Available on Fuchsia only.
Source§impl FidlCompatible<OptionOverloadValue> for Overload
Available on Fuchsia only.
impl FidlCompatible<OptionOverloadValue> for Overload
Available on Fuchsia only.
Source§impl FidlCompatible<Option_> for DhcpOption
Available on Fuchsia only.
impl FidlCompatible<Option_> for DhcpOption
Available on Fuchsia only.