pub struct StorageManager { /* private fields */ }Implementations§
Source§impl StorageManager
impl StorageManager
pub async fn from_config( config: PipedashConfig, is_desktop: bool, ) -> DomainResult<Self>
pub async fn from_config_allow_locked( config: PipedashConfig, is_desktop: bool, ) -> DomainResult<Self>
pub async fn is_vault_locked(&self) -> bool
pub fn requires_vault_password(&self) -> bool
pub async fn is_first_time_vault_setup(&self) -> DomainResult<bool>
pub async fn unlock_vault(&self, password: &str) -> DomainResult<()>
pub fn config(&self) -> &PipedashConfig
pub async fn token_store(&self) -> Arc<dyn TokenStore> ⓘ
pub fn config_backend(&self) -> Arc<dyn ConfigBackend> ⓘ
pub fn cache_backend(&self) -> Arc<dyn StorageBackend> ⓘ
pub fn database_pool(&self) -> DatabasePool
pub async fn with_token_store( config: PipedashConfig, token_store: Arc<dyn TokenStore>, is_desktop: bool, ) -> DomainResult<Self>
pub async fn with_token_store_locked( config: PipedashConfig, token_store: Arc<dyn TokenStore>, is_desktop: bool, ) -> DomainResult<Self>
Auto Trait Implementations§
impl !RefUnwindSafe for StorageManager
impl !UnwindSafe for StorageManager
impl Freeze for StorageManager
impl Send for StorageManager
impl Sync for StorageManager
impl Unpin for StorageManager
impl UnsafeUnpin for StorageManager
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more