Struct smf::PropertyWait
source · pub struct PropertyWait<'a> { /* private fields */ }
Expand description
Created by Properties::wait, a builder object waiting for a property group to change.
Implementations§
source§impl<'a> PropertyWait<'a>
impl<'a> PropertyWait<'a>
sourcepub fn as_command<S>(
&mut self,
property: &PropertyGroupName,
fmri: S
) -> Commandwhere
S: AsRef<str>,
pub fn as_command<S>( &mut self, property: &PropertyGroupName, fmri: S ) -> Commandwhere S: AsRef<str>,
Returns the Command to wait for a property, without running it.
sourcepub fn parse_output(output: &Output) -> Result<Property, PropertyError>
pub fn parse_output(output: &Output) -> Result<Property, PropertyError>
Parses the output for an executed command from Self::as_command.
sourcepub fn run<S>(
&mut self,
property: &PropertyGroupName,
fmri: S
) -> Result<Property, PropertyError>where
S: AsRef<str>,
pub fn run<S>( &mut self, property: &PropertyGroupName, fmri: S ) -> Result<Property, PropertyError>where S: AsRef<str>,
Waits until a specified property group changes before printing.
Returns requested property - note that it might not be the property which changed.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for PropertyWait<'a>
impl<'a> Send for PropertyWait<'a>
impl<'a> Sync for PropertyWait<'a>
impl<'a> Unpin for PropertyWait<'a>
impl<'a> UnwindSafe for PropertyWait<'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