pub struct AppState { /* private fields */ }Expand description
Main internal structure for holding the initial app configuration (AppConf),
the clipboard containing dynamically generated state (NestedTextMap),
and the jobs field containing
Implementations§
Source§impl AppState
impl AppState
pub fn new() -> AppState
pub fn new_safe() -> SafeAppState
pub fn from_safe(conf: AppConf) -> SafeAppState
pub fn get_config(&self) -> &AppConf
pub fn get_config_mut(&mut self) -> &mut AppConf
pub fn has_clipboard(&self, id: &ClipboardID) -> bool
pub fn has_job(&self, id: &JobID) -> bool
pub fn push_job_result(&mut self, id: &JobID, job: Job)
pub fn push_to_clipboard(&mut self, data: TextMap) -> ClipboardID
pub fn request_clipboard_slice(&mut self) -> ClipboardID
pub fn pop_job(&mut self, id: &RUMID) -> Option<Job>
pub fn pop_clipboard(&mut self, id: &ClipboardID) -> Option<TextMap>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppState
impl RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin 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