fidl_fuchsia_ldsvc

Trait LoaderProxyInterface

Source
pub trait LoaderProxyInterface: Send + Sync {
    type LoadObjectResponseFut: Future<Output = Result<(i32, Option<Vmo>), Error>> + Send;
    type ConfigResponseFut: Future<Output = Result<i32, Error>> + Send;
    type CloneResponseFut: Future<Output = Result<i32, Error>> + Send;

    // Required methods
    fn done(&self) -> Result<(), Error>;
    fn load_object(&self, object_name: &str) -> Self::LoadObjectResponseFut;
    fn config(&self, config: &str) -> Self::ConfigResponseFut;
    fn clone(&self, loader: ServerEnd<LoaderMarker>) -> Self::CloneResponseFut;
}

Required Associated Types§

Source

type LoadObjectResponseFut: Future<Output = Result<(i32, Option<Vmo>), Error>> + Send

Source

type ConfigResponseFut: Future<Output = Result<i32, Error>> + Send

Source

type CloneResponseFut: Future<Output = Result<i32, Error>> + Send

Required Methods§

Source

fn done(&self) -> Result<(), Error>

Source

fn load_object(&self, object_name: &str) -> Self::LoadObjectResponseFut

Source

fn config(&self, config: &str) -> Self::ConfigResponseFut

Source

fn clone(&self, loader: ServerEnd<LoaderMarker>) -> Self::CloneResponseFut

Implementors§

Source§

impl LoaderProxyInterface for LoaderProxy

Source§

type LoadObjectResponseFut = QueryResponseFut<(i32, Option<Vmo>)>

Source§

type ConfigResponseFut = QueryResponseFut<i32>

Source§

type CloneResponseFut = QueryResponseFut<i32>