Struct smf::Properties
source · pub struct Properties { /* private fields */ }
Expand description
Queries the properties of a service or instance.
Implementations§
source§impl Properties
impl Properties
sourcepub fn zone<S: AsRef<str>>(&mut self, zone: S) -> &mut Properties
pub fn zone<S: AsRef<str>>(&mut self, zone: S) -> &mut Properties
Requests a command be issued within a specific zone.
sourcepub fn lookup(&self) -> PropertyLookup<'_>
pub fn lookup(&self) -> PropertyLookup<'_>
Acquires a PropertyLookup command, capable of listing properties.
let name = smf::PropertyName::new("general", "comment").unwrap();
let property = smf::Properties::new()
.lookup()
.run(&name, "my-service")
.unwrap();
sourcepub fn wait(&self) -> PropertyWait<'_>
pub fn wait(&self) -> PropertyWait<'_>
Acquires a PropertyWait command, capable of waiting for properties to change.
let group = smf::PropertyGroupName::new("general").unwrap();
let property = smf::Properties::new()
.wait()
.run(&group, "my-service")
.unwrap();
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Properties
impl Send for Properties
impl Sync for Properties
impl Unpin for Properties
impl UnwindSafe for Properties
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