pub struct FredStores {
pub rate_limit: FredRateLimitStore,
pub secondary_storage: FredSecondaryStorage,
}Expand description
Rate limit and secondary storage backed by one fred client.
Fields§
§rate_limit: FredRateLimitStore§secondary_storage: FredSecondaryStorageImplementations§
Source§impl FredStores
impl FredStores
pub async fn connect(url: &str) -> Result<Self, RustAuthError>
pub async fn connect_with_options( url: &str, options: FredOptions, ) -> Result<Self, RustAuthError>
Sourcepub fn apply_to_options(&self, options: RustAuthOptions) -> RustAuthOptions
pub fn apply_to_options(&self, options: RustAuthOptions) -> RustAuthOptions
Wires both stores into RustAuthOptions (secondary storage + distributed rate limit).
Trait Implementations§
Source§impl Clone for FredStores
impl Clone for FredStores
Source§fn clone(&self) -> FredStores
fn clone(&self) -> FredStores
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for FredStores
impl !RefUnwindSafe for FredStores
impl !UnwindSafe for FredStores
impl Send for FredStores
impl Sync for FredStores
impl Unpin for FredStores
impl UnsafeUnpin for FredStores
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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