pub struct GeneratedSysctl { /* private fields */ }Expand description
One ordered mapping-form generated sysctl assignment.
Implementations§
Source§impl GeneratedSysctl
impl GeneratedSysctl
Sourcepub fn new(
name: impl Into<String>,
value: GeneratedString,
) -> Result<Self, GenerationError>
pub fn new( name: impl Into<String>, value: GeneratedString, ) -> Result<Self, GenerationError>
Creates one resolved string-valued sysctl assignment.
§Errors
Rejects empty, multiline, NUL-bearing, or dollar-bearing names and multiline or
dollar-bearing values. Values may be empty. NUL-bearing values are rejected while
constructing GeneratedString.
Sourcepub const fn value(&self) -> &GeneratedString
pub const fn value(&self) -> &GeneratedString
Returns the exact string value through its sensitivity boundary.
Trait Implementations§
Source§impl Clone for GeneratedSysctl
impl Clone for GeneratedSysctl
Source§fn clone(&self) -> GeneratedSysctl
fn clone(&self) -> GeneratedSysctl
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 GeneratedSysctl
impl Debug for GeneratedSysctl
impl Eq for GeneratedSysctl
Source§impl PartialEq for GeneratedSysctl
impl PartialEq for GeneratedSysctl
impl StructuralPartialEq for GeneratedSysctl
Auto Trait Implementations§
impl Freeze for GeneratedSysctl
impl RefUnwindSafe for GeneratedSysctl
impl Send for GeneratedSysctl
impl Sync for GeneratedSysctl
impl Unpin for GeneratedSysctl
impl UnsafeUnpin for GeneratedSysctl
impl UnwindSafe for GeneratedSysctl
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