Enum libcoreinst::cmdline::Console
source · pub enum Console {
Graphical(GraphicalConsole),
Serial(SerialConsole),
}Variants§
Graphical(GraphicalConsole)
Serial(SerialConsole)
Implementations§
source§impl Console
impl Console
pub fn grub_terminal(&self) -> &'static str
pub fn grub_command(&self) -> Option<String>
pub fn karg(&self) -> String
sourcepub fn maybe_warn_on_kargs(
kargs: &[String],
karg_option: &str,
console_option: &str
)
pub fn maybe_warn_on_kargs( kargs: &[String], karg_option: &str, console_option: &str )
Write a warning message to stdout if kargs contains “console=” arguments we can parse and no “console=” arguments we can’t. The warning suggests that users use console_option instead of karg_option to specify the desired console.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Console
impl<'de> Deserialize<'de> for Console
source§fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Console
impl PartialEq for Console
impl Eq for Console
impl StructuralEq for Console
impl StructuralPartialEq for Console
Auto Trait Implementations§
impl RefUnwindSafe for Console
impl Send for Console
impl Sync for Console
impl Unpin for Console
impl UnwindSafe for Console
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.