pub enum McpScreen {
Menu(Receiver<McpMenu>, Sender<Option<String>>),
Status(String, String),
RedirectUrl(String, String, Sender<Option<String>>),
Close,
}Expand description
pi’s McpUi: a screen of the /mcp manager.
Variants§
Menu(Receiver<McpMenu>, Sender<Option<String>>)
A menu, rebuilt through the receiver while it is open, keeping the
selected item. The reply is the chosen item’s value, or None when
cancelled.
Status(String, String)
A title and a message, shown while an operation runs.
RedirectUrl(String, String, Sender<Option<String>>)
A title, the authorization URL, and a field for the URL the browser
was redirected to. The reply is that URL, or None when cancelled.
Close
Closes the manager.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for McpScreen
impl !UnwindSafe for McpScreen
impl Forget for McpScreen
impl Freeze for McpScreen
impl Send for McpScreen
impl Sync for McpScreen
impl Unpin for McpScreen
impl UnsafeUnpin for McpScreen
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