pub struct Component { /* private fields */ }Implementations§
Source§impl Component
impl Component
pub fn new(path: PathBuf, settings: Settings) -> Result<Self, InitError>
pub async fn load(path: PathBuf) -> Result<Self, LoadError>
pub async fn save(&self) -> Result<(), SaveError>
pub fn values(&self) -> &Settings
pub fn values_mut(&mut self) -> &mut Settings
pub async fn run(&mut self, app: &mut App) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnsafeUnpin for Component
impl UnwindSafe for Component
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