fidl_fuchsia_boot

Trait ArgumentsProxyInterface

Source
pub trait ArgumentsProxyInterface: Send + Sync {
    type GetStringResponseFut: Future<Output = Result<Option<String>, Error>> + Send;
    type GetStringsResponseFut: Future<Output = Result<Vec<Option<String>>, Error>> + Send;
    type GetBoolResponseFut: Future<Output = Result<bool, Error>> + Send;
    type GetBoolsResponseFut: Future<Output = Result<Vec<bool>, Error>> + Send;
    type CollectResponseFut: Future<Output = Result<Vec<String>, Error>> + Send;

    // Required methods
    fn get_string(&self, key: &str) -> Self::GetStringResponseFut;
    fn get_strings(&self, keys: &[String]) -> Self::GetStringsResponseFut;
    fn get_bool(&self, key: &str, defaultval: bool) -> Self::GetBoolResponseFut;
    fn get_bools(&self, keys: &[BoolPair]) -> Self::GetBoolsResponseFut;
    fn collect(&self, prefix: &str) -> Self::CollectResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn get_string(&self, key: &str) -> Self::GetStringResponseFut

Source

fn get_strings(&self, keys: &[String]) -> Self::GetStringsResponseFut

Source

fn get_bool(&self, key: &str, defaultval: bool) -> Self::GetBoolResponseFut

Source

fn get_bools(&self, keys: &[BoolPair]) -> Self::GetBoolsResponseFut

Source

fn collect(&self, prefix: &str) -> Self::CollectResponseFut

Implementors§