pub struct AppStateData {
pub db: Arc<dyn DbProvider>,
pub signing_key: Key,
pub settings: Arc<Settings>,
pub crate_storage: Arc<KellnrCrateStorage>,
pub cratesio_storage: Arc<CratesIoCrateStorage>,
pub cratesio_prefetch_sender: Sender<CratesioPrefetchMsg>,
pub token_cache: Arc<TokenCacheManager>,
pub toolchain_storage: Option<Arc<ToolchainStorage>>,
pub download_counter: Arc<DownloadCounter>,
pub proxy_client: Client,
}Fields§
§db: Arc<dyn DbProvider>§signing_key: Key§settings: Arc<Settings>§crate_storage: Arc<KellnrCrateStorage>§cratesio_storage: Arc<CratesIoCrateStorage>§cratesio_prefetch_sender: Sender<CratesioPrefetchMsg>§token_cache: Arc<TokenCacheManager>§toolchain_storage: Option<Arc<ToolchainStorage>>§download_counter: Arc<DownloadCounter>§proxy_client: ClientTrait Implementations§
Source§impl Clone for AppStateData
impl Clone for AppStateData
Source§fn clone(&self) -> AppStateData
fn clone(&self) -> AppStateData
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 FromRef<AppStateData> for Arc<CratesIoCrateStorage>
impl FromRef<AppStateData> for Arc<CratesIoCrateStorage>
Source§fn from_ref(state: &AppStateData) -> Self
fn from_ref(state: &AppStateData) -> Self
Converts to this type from a reference to the input type.
Source§impl FromRef<AppStateData> for Arc<DownloadCounter>
impl FromRef<AppStateData> for Arc<DownloadCounter>
Source§fn from_ref(state: &AppStateData) -> Self
fn from_ref(state: &AppStateData) -> Self
Converts to this type from a reference to the input type.
Source§impl FromRef<AppStateData> for Arc<KellnrCrateStorage>
impl FromRef<AppStateData> for Arc<KellnrCrateStorage>
Source§fn from_ref(state: &AppStateData) -> Self
fn from_ref(state: &AppStateData) -> Self
Converts to this type from a reference to the input type.
Source§impl FromRef<AppStateData> for Arc<Settings>
impl FromRef<AppStateData> for Arc<Settings>
Source§fn from_ref(state: &AppStateData) -> Self
fn from_ref(state: &AppStateData) -> Self
Converts to this type from a reference to the input type.
Source§impl FromRef<AppStateData> for Arc<TokenCacheManager>
impl FromRef<AppStateData> for Arc<TokenCacheManager>
Source§fn from_ref(state: &AppStateData) -> Self
fn from_ref(state: &AppStateData) -> Self
Converts to this type from a reference to the input type.
Source§impl FromRef<AppStateData> for Arc<dyn DbProvider>
impl FromRef<AppStateData> for Arc<dyn DbProvider>
Source§fn from_ref(state: &AppStateData) -> Self
fn from_ref(state: &AppStateData) -> Self
Converts to this type from a reference to the input type.
Source§impl FromRef<AppStateData> for Client
impl FromRef<AppStateData> for Client
Source§fn from_ref(state: &AppStateData) -> Self
fn from_ref(state: &AppStateData) -> Self
Converts to this type from a reference to the input type.
Source§impl FromRef<AppStateData> for Key
impl FromRef<AppStateData> for Key
Source§fn from_ref(state: &AppStateData) -> Self
fn from_ref(state: &AppStateData) -> Self
Converts to this type from a reference to the input type.
Source§impl FromRef<AppStateData> for Option<Arc<ToolchainStorage>>
impl FromRef<AppStateData> for Option<Arc<ToolchainStorage>>
Source§fn from_ref(state: &AppStateData) -> Self
fn from_ref(state: &AppStateData) -> Self
Converts to this type from a reference to the input type.
Source§impl FromRef<AppStateData> for Sender<CratesioPrefetchMsg>
impl FromRef<AppStateData> for Sender<CratesioPrefetchMsg>
Source§fn from_ref(state: &AppStateData) -> Self
fn from_ref(state: &AppStateData) -> Self
Converts to this type from a reference to the input type.
Auto Trait Implementations§
impl Freeze for AppStateData
impl !RefUnwindSafe for AppStateData
impl Send for AppStateData
impl Sync for AppStateData
impl Unpin for AppStateData
impl UnsafeUnpin for AppStateData
impl !UnwindSafe for AppStateData
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