dhcp_protocol

Trait FidlCompatible

Source
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§

Source

fn try_from_fidl(fidl: F) -> Result<Self, Self::FromError>

Source

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.

Implementations on Foreign Types§

Source§

impl FidlCompatible<Ipv4Address> for Ipv4Addr

Source§

impl FidlCompatible<Vec<Ipv4Address>> for Vec<Ipv4Addr>

Implementors§