pub struct ProtectedState<'a>(/* private fields */);
Implementations§
Source§impl<'a> ProtectedState<'a>
impl<'a> ProtectedState<'a>
pub fn google_db(&self, config: Config) -> Result<RemoteDBClient<GoogleClient>>
pub fn memory_db(&self) -> Result<MemoryDB>
pub async fn list_google_recurring( &self, config: Config, ) -> Result<Vec<RecurringRecord>>
pub async fn list_file_recurring(&self) -> Result<Vec<RecurringRecord>>
pub async fn list_google( &self, config: Config, list_type: ListType, ) -> Result<Vec<Record>>
pub async fn list_file(&self, list_type: ListType) -> Result<Vec<Record>>
pub async fn command_google(&self, config: Config) -> Result<()>
pub async fn command_file(&self, config: Config) -> Result<()>
pub async fn get_google(&self, config: Config, id: u64) -> Result<Record>
pub async fn get_file(&self, id: u64) -> Result<Record>
pub async fn get_recurring_google( &self, config: Config, id: u64, ) -> Result<RecurringRecord>
pub async fn get_recurring_file(&self, id: u64) -> Result<RecurringRecord>
pub async fn update_state(&self)
pub async fn refresh(&self) -> Result<()>
pub async fn add_notification(&self, notification: &str)
pub async fn add_error(&self, error: Error)
Trait Implementations§
Source§impl<'a> Clone for ProtectedState<'a>
impl<'a> Clone for ProtectedState<'a>
Source§fn clone(&self) -> ProtectedState<'a>
fn clone(&self) -> ProtectedState<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for ProtectedState<'a>
impl<'a> Debug for ProtectedState<'a>
Source§impl<'a> Default for ProtectedState<'a>
impl<'a> Default for ProtectedState<'a>
Source§fn default() -> ProtectedState<'a>
fn default() -> ProtectedState<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ProtectedState<'a>
impl<'a> !RefUnwindSafe for ProtectedState<'a>
impl<'a> Send for ProtectedState<'a>
impl<'a> Sync for ProtectedState<'a>
impl<'a> Unpin for ProtectedState<'a>
impl<'a> !UnwindSafe for ProtectedState<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more