pub struct KernelParameter { /* private fields */ }Expand description
One raw-preserving kernel-parameter assignment.
Implementations§
Source§impl KernelParameter
impl KernelParameter
Sourcepub const fn new(name: ProtectedString, value: ProtectedString) -> Self
pub const fn new(name: ProtectedString, value: ProtectedString) -> Self
Creates an assignment without interpreting kernel namespaces or privileges.
Sourcepub const fn name(&self) -> &ProtectedString
pub const fn name(&self) -> &ProtectedString
Returns the authored parameter name.
Sourcepub const fn value(&self) -> &ProtectedString
pub const fn value(&self) -> &ProtectedString
Returns the authored scalar value spelling.
Trait Implementations§
Source§impl Clone for KernelParameter
impl Clone for KernelParameter
Source§fn clone(&self) -> KernelParameter
fn clone(&self) -> KernelParameter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KernelParameter
impl Debug for KernelParameter
impl Eq for KernelParameter
Source§impl PartialEq for KernelParameter
impl PartialEq for KernelParameter
impl StructuralPartialEq for KernelParameter
Auto Trait Implementations§
impl Freeze for KernelParameter
impl RefUnwindSafe for KernelParameter
impl Send for KernelParameter
impl Sync for KernelParameter
impl Unpin for KernelParameter
impl UnsafeUnpin for KernelParameter
impl UnwindSafe for KernelParameter
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