pub struct OperatingSystemView<'a> { /* private fields */ }Expand description
Read-only view over an (operating-system ...) form. An optional
leading (inherit ...) is accepted and ignored by field lookups.
Implementations§
Source§impl<'a> OperatingSystemView<'a>
impl<'a> OperatingSystemView<'a>
Sourcepub fn new(node: &'a Node) -> Option<Self>
pub fn new(node: &'a Node) -> Option<Self>
Some only when NODE is a list headed by operating-system.
pub fn host_name(&self) -> Option<String>
pub fn timezone(&self) -> Option<String>
pub fn locale(&self) -> Option<String>
Sourcepub fn field(&self, name: &str) -> Option<&'a Node>
pub fn field(&self, name: &str) -> Option<&'a Node>
Value node of a named field, e.g. "file-systems" or "services".
pub fn has_field(&self, name: &str) -> bool
Auto Trait Implementations§
impl<'a> Freeze for OperatingSystemView<'a>
impl<'a> RefUnwindSafe for OperatingSystemView<'a>
impl<'a> Send for OperatingSystemView<'a>
impl<'a> Sync for OperatingSystemView<'a>
impl<'a> Unpin for OperatingSystemView<'a>
impl<'a> UnsafeUnpin for OperatingSystemView<'a>
impl<'a> UnwindSafe for OperatingSystemView<'a>
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