fidl_fuchsia_net_stack_ext

Trait FidlReturn

Source
pub trait FidlReturn {
    type Item;

    // Required method
    fn squash_result(self) -> Result<Self::Item, Error>;
}
Expand description

Helper trait to reduce boilerplate issuing FIDL calls.

Required Associated Types§

Required Methods§

Source

fn squash_result(self) -> Result<Self::Item, Error>

Implementations on Foreign Types§

Source§

impl<T> FidlReturn for Result<Result<T, Error>, Error>

Source§

type Item = T

Source§

fn squash_result(self) -> Result<Self::Item, Error>

Implementors§