pub struct Info<C = NonCancellable> { /* private fields */ }
Implementations§
Source§impl<C> Info<C>where
C: Cancellation<String>,
impl<C> Info<C>where
C: Cancellation<String>,
pub fn from_cancellation( title: impl AsRef<str>, message: impl AsRef<str>, cancellation: C, ) -> Self
pub fn with_title(self, title: &str) -> Self
pub fn set_title(&mut self, title: &str) -> &mut Self
pub fn with_message(self, message: &str) -> Self
pub fn set_message(&mut self, message: &str) -> &mut Self
pub fn with_cancellation(self, cancellation: C) -> Self
pub fn set_cancellation(&mut self, cancellation: C) -> &mut Self
pub fn with_style(self, style: Style) -> Self
pub fn set_style(&mut self, style: Style) -> &mut Self
pub fn style(&self) -> &Style
pub fn key_bindings(&self) -> &KeyBindingMap
pub fn cancellation(&self) -> &C
pub fn is_cancellable(&self) -> bool
pub fn is_cancelling(&self) -> bool
pub fn set_cancelling(&mut self, is_it: bool)
pub fn title(&self) -> &str
pub fn message(&self) -> &str
pub fn run_command(&mut self, cmd: Command) -> Result<bool, Error>
pub async fn run(&mut self, app: &mut App) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for Info<C>where
C: Freeze,
impl<C> RefUnwindSafe for Info<C>where
C: RefUnwindSafe,
impl<C> Send for Info<C>where
C: Send,
impl<C> Sync for Info<C>where
C: Sync,
impl<C> Unpin for Info<C>where
C: Unpin,
impl<C> UnwindSafe for Info<C>where
C: UnwindSafe,
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