pub struct AppState {
pub inference_tx: Sender<InferenceRequest>,
pub auth: Arc<TokenAuthority>,
pub start_time: Instant,
pub model_info: ModelInfo,
pub sandbox_active: bool,
pub device_pubkey: [u8; 32],
pub merkle_root_bytes: [u8; 32],
pub signing_key: SigningKey,
}Fields§
§inference_tx: Sender<InferenceRequest>§auth: Arc<TokenAuthority>§start_time: Instant§model_info: ModelInfo§sandbox_active: bool§device_pubkey: [u8; 32]§merkle_root_bytes: [u8; 32]§signing_key: SigningKeyAuto Trait Implementations§
impl Freeze for AppState
impl RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl UnsafeUnpin for AppState
impl UnwindSafe for AppState
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