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 Consolewhere
Self: FromStr,
<Self as FromStr>::Err: Display,
impl<'de> Deserialize<'de> for Consolewhere Self: FromStr, <Self as FromStr>::Err: Display,
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<Console> for Console
impl PartialEq<Console> 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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.