Struct ostree::KernelArgs
source · [−]pub struct KernelArgs(_);
Expand description
Kernel arguments.
Implementations
sourceimpl KernelArgs
impl KernelArgs
sourcepub fn append_argv(&mut self, argv: &[&str])
pub fn append_argv(&mut self, argv: &[&str])
Add multiple kernel arguments.
sourcepub fn append_argv_filtered(&mut self, argv: &[&str], prefixes: &[&str])
pub fn append_argv_filtered(&mut self, argv: &[&str], prefixes: &[&str])
Appends each argument that does not have one of prefixes
.
sourcepub fn append_proc_cmdline<P: IsA<Cancellable>>(
&mut self,
cancellable: Option<&P>
) -> Result<(), Error>
pub fn append_proc_cmdline<P: IsA<Cancellable>>(
&mut self,
cancellable: Option<&P>
) -> Result<(), Error>
Append the entire contents of the currently booted kernel commandline.
sourcepub fn get_last_value(&self, key: &str) -> Option<GString>
pub fn get_last_value(&self, key: &str) -> Option<GString>
Given foo
, return the last the value of a foo=bar
key as bar
.
sourcepub fn new_replace(&mut self, arg: &str) -> Result<(), Error>
pub fn new_replace(&mut self, arg: &str) -> Result<(), Error>
Replace any existing foo=bar
with foo=other
e.g.
sourcepub fn parse_append(&mut self, options: &str)
pub fn parse_append(&mut self, options: &str)
Append from a whitespace-separated string.
sourcepub fn replace_argv(&mut self, argv: &[&str])
pub fn replace_argv(&mut self, argv: &[&str])
Replace multiple kernel arguments.
sourcepub fn replace_take(&mut self, arg: &str)
pub fn replace_take(&mut self, arg: &str)
A duplicate of replace
.
sourcepub fn from_string(options: &str) -> KernelArgs
pub fn from_string(options: &str) -> KernelArgs
Parse the given string as kernel arguments.
sourcepub fn new() -> KernelArgs
pub fn new() -> KernelArgs
Create new empty kernel arguments.
Trait Implementations
sourceimpl Clone for KernelArgs
impl Clone for KernelArgs
sourcefn clone(&self) -> KernelArgs
fn clone(&self) -> KernelArgs
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for KernelArgs
impl Debug for KernelArgs
sourceimpl Default for KernelArgs
impl Default for KernelArgs
sourceimpl Display for KernelArgs
impl Display for KernelArgs
sourceimpl Hash for KernelArgs
impl Hash for KernelArgs
sourceimpl Ord for KernelArgs
impl Ord for KernelArgs
sourceimpl PartialEq<KernelArgs> for KernelArgs
impl PartialEq<KernelArgs> for KernelArgs
sourcefn eq(&self, other: &KernelArgs) -> bool
fn eq(&self, other: &KernelArgs) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &KernelArgs) -> bool
fn ne(&self, other: &KernelArgs) -> bool
This method tests for !=
.
sourceimpl PartialOrd<KernelArgs> for KernelArgs
impl PartialOrd<KernelArgs> for KernelArgs
sourcefn partial_cmp(&self, other: &KernelArgs) -> Option<Ordering>
fn partial_cmp(&self, other: &KernelArgs) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for KernelArgs
impl StructuralEq for KernelArgs
impl StructuralPartialEq for KernelArgs
Auto Trait Implementations
impl RefUnwindSafe for KernelArgs
impl !Send for KernelArgs
impl !Sync for KernelArgs
impl Unpin for KernelArgs
impl UnwindSafe for KernelArgs
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more