pub fn new_with_id(id: &str) -> Result<Self, Error> {
        let store_client = connect_to_service::<fidl_stash::SecureStoreMarker>()
            .context("failed to connect to store")?;
        store_client.identify(id).context("failed to identify client to store")?;
        let (store, accessor_server) = create_proxy().context("failed to create accessor proxy")?;
        store_client
            .create_accessor(false, accessor_server)
            .context("failed to create accessor")?;
        let root = StashNode::root(store).child(STASH_PREFIX);
        Ok(Stash { root })
    }
/// Initialize new Stash with the ID provided by the Saved Networks Manager. The ID will
/// identify stored values as being part of the same persistent storage.
Initialize new Stash with the ID provided by the Saved Networks Manager. The ID will
identify stored values as being part of the same persistent storage.
Initialize new Stash with the ID provided by the Saved Networks Manager . The ID will identify stored values as being part of the same persistent storage .
pub fn new_with_id(id: &str) -> Result<Self, Error> {
        let store_client = connect_to_service::<fidl_stash::SecureStoreMarker>()
            .context("failed to connect to store")?;
        store_client.identify(id).context("failed to identify client to store")?;
        let (store, accessor_server) = create_proxy().context("failed to create accessor proxy")?;
        store_client
            .create_accessor(false, accessor_server)
            .context("failed to create accessor")?;
        let root = StashNode::root(store).child(STASH_PREFIX);
        Ok(Stash { root })
    }
pub fn new_with_id ( id : & str ) -> Result < Self , Error > { let store_client = connect_to_service :: < fidl_stash :: SecureStoreMarker > ( ) . context ( " " ) ? ; store_client . identify ( id ) . context ( " " ) ? ; let ( store , accessor_server ) = create_proxy ( ) . context ( " " ) ? ; store_client . create_accessor ( false , accessor_server ) . context ( " " ) ? ; let root = StashNode :: root ( store ) . child ( STASH_PREFIX ) ; Ok ( Stash { root } ) }
Initialize new Stash with the ID provided by the Saved Networks Manager.
Initialize new Stash with the ID provided by the Saved Networks Manager .
id
&str
id
&str