pub struct Chosen<N> { /* private fields */ }Expand description
Typed wrapper for a /chosen node.
Implementations§
Source§impl<'a, N: Node<'a>> Chosen<N>
impl<'a, N: Node<'a>> Chosen<N>
Sourcepub fn bootargs(&self) -> Result<Option<&'a str>, PropertyError>
pub fn bootargs(&self) -> Result<Option<&'a str>, PropertyError>
Returns the value of the standard bootargs property.
§Errors
Returns an PropertyError::InvalidString if the property’s value is
not a null-terminated string or contains invalid UTF-8.
Sourcepub fn stdout_path(&self) -> Result<Option<&'a str>, PropertyError>
pub fn stdout_path(&self) -> Result<Option<&'a str>, PropertyError>
Returns the value of the standard stdout-path property.
§Errors
Returns an PropertyError::InvalidString if the property’s value is
not a null-terminated string or contains invalid UTF-8.
Sourcepub fn stdin_path(&self) -> Result<Option<&'a str>, PropertyError>
pub fn stdin_path(&self) -> Result<Option<&'a str>, PropertyError>
Returns the value of the standard stdin-path property.
§Errors
Returns an PropertyError::InvalidString if the property’s value is
not a null-terminated string or contains invalid UTF-8.
Trait Implementations§
impl<N: Copy> Copy for Chosen<N>
Auto Trait Implementations§
impl<N> Freeze for Chosen<N>where
N: Freeze,
impl<N> RefUnwindSafe for Chosen<N>where
N: RefUnwindSafe,
impl<N> Send for Chosen<N>where
N: Send,
impl<N> Sync for Chosen<N>where
N: Sync,
impl<N> Unpin for Chosen<N>where
N: Unpin,
impl<N> UnwindSafe for Chosen<N>where
N: UnwindSafe,
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