pub struct UnitProxy<'p>(/* private fields */);Expand description
Proxy object for org.freedesktop.systemd1.Unit.
Taken from https://github.com/lucab/zbus_systemd/blob/main/src/systemd1/generated.rs
Implementations§
Source§impl<'p> UnitProxy<'p>
impl<'p> UnitProxy<'p>
Sourcepub async fn new<P>(conn: &Connection, path: P) -> Result<UnitProxy<'p>>
pub async fn new<P>(conn: &Connection, path: P) -> Result<UnitProxy<'p>>
Creates a new proxy with the given path, and the default destination.
Sourcepub fn builder(conn: &Connection) -> Builder<'p, Self>
pub fn builder(conn: &Connection) -> Builder<'p, Self>
Returns a customizable builder for this proxy.
Sourcepub fn into_inner(self) -> Proxy<'p>
pub fn into_inner(self) -> Proxy<'p>
Consumes self, returning the underlying zbus::Proxy.
Sourcepub fn inner_mut(&mut self) -> &mut Proxy<'p>
pub fn inner_mut(&mut self) -> &mut Proxy<'p>
The mutable reference to the underlying zbus::Proxy.
Sourcepub async fn active_state(&self) -> Result<String>
pub async fn active_state(&self) -> Result<String>
Get property ActiveState.
Sourcepub async fn load_state(&self) -> Result<String>
pub async fn load_state(&self) -> Result<String>
Get property LoadState.
Sourcepub async fn unit_file_state(&self) -> Result<String>
pub async fn unit_file_state(&self) -> Result<String>
Get property UnitFileState.
Trait Implementations§
Source§impl<'a> ProxyDefault for UnitProxy<'a>
impl<'a> ProxyDefault for UnitProxy<'a>
Auto Trait Implementations§
impl<'p> Freeze for UnitProxy<'p>
impl<'p> !RefUnwindSafe for UnitProxy<'p>
impl<'p> Send for UnitProxy<'p>
impl<'p> Sync for UnitProxy<'p>
impl<'p> Unpin for UnitProxy<'p>
impl<'p> !UnwindSafe for UnitProxy<'p>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DynamicType for T
impl<T> DynamicType for T
Source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more