pub struct Mode {
pub prompt: String,
pub title: String,
pub parent: Option<ModeId>,
/* private fields */
}Expand description
a mode of the command line
Fields§
§prompt: Stringwhat follows the host name in the prompt (“#”, “(config-if)#”)
title: Stringthe first line of the “?” list (“Commands at the user level:”)
parent: Option<ModeId>where a command that is not one of this mode goes (configuration submodes: the global configuration); the caller decides whether it tries there
Trait Implementations§
Auto Trait Implementations§
impl Forget for Mode
impl Freeze for Mode
impl Move for Mode
impl RefUnwindSafe for Mode
impl Send for Modewhere
RawVecInner: Send,
impl Sync for Modewhere
RawVecInner: Sync,
impl Unpin for Mode
impl UnsafeUnpin for Mode
impl UnwindSafe for Modewhere
RawVecInner: 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