pub struct RemoteLocalStore { /* private fields */ }Implementations§
Source§impl RemoteLocalStore
impl RemoteLocalStore
pub fn new(local_data_dir: PathBuf) -> Self
pub fn remote_metadata_path(&self, project_id: &str) -> PathBuf
pub fn token_path(&self, project_id: &str) -> PathBuf
pub fn claim_secret_path(&self, project_id: &str) -> PathBuf
pub fn save_remote_metadata( &self, meta: &RemoteMetadata, ) -> Result<(), DomainError>
pub fn load_remote_metadata( &self, project_id: &str, ) -> Result<Option<RemoteMetadata>, DomainError>
pub fn save_token( &self, project_id: &str, token: &str, ) -> Result<(), DomainError>
pub fn load_token( &self, project_id: &str, ) -> Result<Option<String>, DomainError>
pub fn save_claim_secret( &self, project_id: &str, claim_secret: &str, ) -> Result<(), DomainError>
pub fn clear_token(&self, project_id: &str) -> Result<(), DomainError>
pub fn clear_claim_secret(&self, project_id: &str) -> Result<(), DomainError>
pub fn load_claim_secret( &self, project_id: &str, ) -> Result<Option<String>, DomainError>
pub fn delete_claim_secret(&self, project_id: &str) -> Result<(), DomainError>
pub fn clear_project_data(&self, project_id: &str) -> Result<(), DomainError>
pub fn admin_token_path(&self, server_fingerprint: &str) -> PathBuf
pub fn save_admin_token( &self, server_fingerprint: &str, token: &str, ) -> Result<(), DomainError>
pub fn load_admin_token( &self, server_fingerprint: &str, ) -> Result<Option<String>, DomainError>
pub fn admin_remote_path(&self, server_fingerprint: &str) -> PathBuf
pub fn save_admin_remote( &self, server_fingerprint: &str, remote_url: &str, ) -> Result<(), DomainError>
pub fn load_admin_remote( &self, server_fingerprint: &str, ) -> Result<Option<String>, DomainError>
Auto Trait Implementations§
impl Freeze for RemoteLocalStore
impl RefUnwindSafe for RemoteLocalStore
impl Send for RemoteLocalStore
impl Sync for RemoteLocalStore
impl Unpin for RemoteLocalStore
impl UnsafeUnpin for RemoteLocalStore
impl UnwindSafe for RemoteLocalStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more