pub struct ServerState {
pub config: Arc<RwLock<AppConfig>>,
pub cert_fingerprint: String,
pub session_manager: Arc<SessionManager>,
pub download_manager: Arc<DownloadManager>,
pub registry: Arc<PeerRegistry>,
pub event_tx: Option<Sender<ServerTransferEvent>>,
pub dufs_manager: Arc<DufsManager>,
pub tls_identity: Option<TlsIdentity>,
}Expand description
Shared application state injected into hyper request handlers.
Fields§
§config: Arc<RwLock<AppConfig>>§cert_fingerprint: String§session_manager: Arc<SessionManager>§download_manager: Arc<DownloadManager>§registry: Arc<PeerRegistry>§event_tx: Option<Sender<ServerTransferEvent>>§dufs_manager: Arc<DufsManager>§tls_identity: Option<TlsIdentity>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ServerState
impl !UnwindSafe for ServerState
impl Freeze for ServerState
impl Send for ServerState
impl Sync for ServerState
impl Unpin for ServerState
impl UnsafeUnpin for ServerState
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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