pub struct NoUi;Expand description
No UI: a headless session. ui.* methods are refused with a hint.
Trait Implementations§
impl Copy for NoUi
Source§impl UiHandler for NoUi
impl UiHandler for NoUi
Source§fn methods(&self) -> Vec<String>
fn methods(&self) -> Vec<String>
The methods this handler answers (reported by
app.version, so clients such as the MCP
server know whether screenshots and input work).Source§fn handle(&mut self, req: Request)
fn handle(&mut self, req: Request)
Answer
req now, or keep it and answer on a later frame (input must be processed first, a
screenshot needs the next paint). Unknown methods: Request::unknown.Auto Trait Implementations§
impl Forget for NoUi
impl Freeze for NoUi
impl Move for NoUi
impl RefUnwindSafe for NoUi
impl Send for NoUi
impl Sync for NoUi
impl Unpin for NoUi
impl UnsafeUnpin for NoUi
impl UnwindSafe for NoUi
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