Trait dhcp_protocol::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>

Object Safety§

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§