/// Resolve a path into the storage type used for it and the remaining
/// path to the secret. The remaining path has no leading '/'.
Resolve a path into the storage type used for it and the remaining
path to the secret. The remaining path has no leading '/'.
Resolve a path into the storage type used for it and the remaining path to the secret . The remaining path has no leading ' / ' .
fn split_path<'s,'a>(&'s self, path: &'a str) -> Option<(StorageType,&'s str,&'a str)> {
        let path = path.trim_start_matches('/');
        for (ty,mount_path) in &self.mount_points {
            if path.starts_with(mount_path) {
                let path = path[mount_path.len()..].trim_start_matches('/');
                return Some((*ty,&**mount_path,path));
            }
        }
        None
    }
fn split_path < ' s , ' a > ( & ' s self , path : & ' a str ) -> Option < ( StorageType , & ' s str , & ' a str ) > { let path = path . trim_start_matches ( '/' ) ; for ( ty , mount_path ) in & self . mount_points { if path . starts_with ( mount_path ) { let path = path [ mount_path . len ( ) .. ] . trim_start_matches ( '/' ) ; return Some ( ( * ty , & * * mount_path , path ) ) ; } } None }
Resolve a path into the storage type used for it and the remaining
path to the secret.
Resolve a path into the storage type used for it and the remaining path to the secret .
&'s self
path
&'a str