pub struct AppState {
pub core: Arc<Mutex<FederCore>>,
pub local_actor: Actor,
pub username: String,
pub handle_host: String,
pub notes: Vec<Note>,
}Fields§
§core: Arc<Mutex<FederCore>>§local_actor: Actor§username: String§handle_host: String§notes: Vec<Note>Implementations§
Source§impl AppState
impl AppState
pub fn from_config(config: &RuntimeConfig) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Forget for AppState
impl Freeze for AppState
impl Move 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