pub struct Config { /* private fields */ }
Implementations§
Source§impl Config
impl Config
pub fn new() -> Self
pub fn with_cancel_token(self, token: CancellationToken) -> Self
pub fn with_screen(self, config: Config) -> Self
pub fn with_input(self, config: Config) -> Self
pub fn with_tick_period(self, duration: Duration) -> Self
pub fn with_device(self, device: Box<dyn RuntimeDevice>) -> Self
pub async fn run<F, A>(self, app_scope: F) -> Result<A::Output, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl !RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl !UnwindSafe for Config
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