Struct systemctl_tui::systemd::ManagerProxy
source · pub struct ManagerProxy<'p>(/* private fields */);Expand description
Proxy object for org.freedesktop.systemd1.Manager.
Partially taken from https://github.com/lucab/zbus_systemd/blob/main/src/systemd1/generated.rs
Implementations§
source§impl<'p> ManagerProxy<'p>
impl<'p> ManagerProxy<'p>
sourcepub async fn new(conn: &Connection) -> Result<ManagerProxy<'p>>
pub async fn new(conn: &Connection) -> Result<ManagerProxy<'p>>
Creates a new proxy with the default service and path.
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 start_unit(
&self,
name: String,
mode: String,
) -> Result<OwnedObjectPath>
pub async fn start_unit( &self, name: String, mode: String, ) -> Result<OwnedObjectPath>
📖 Call interface method StartUnit.
sourcepub async fn stop_unit(
&self,
name: String,
mode: String,
) -> Result<OwnedObjectPath>
pub async fn stop_unit( &self, name: String, mode: String, ) -> Result<OwnedObjectPath>
📖 Call interface method StopUnit.
sourcepub async fn restart_unit(
&self,
name: String,
mode: String,
) -> Result<OwnedObjectPath>
pub async fn restart_unit( &self, name: String, mode: String, ) -> Result<OwnedObjectPath>
📖 Call interface method RestartUnit.
sourcepub async fn enable_unit_files(
&self,
files: Vec<String>,
runtime: bool,
force: bool,
) -> Result<(bool, Vec<(String, String, String)>)>
pub async fn enable_unit_files( &self, files: Vec<String>, runtime: bool, force: bool, ) -> Result<(bool, Vec<(String, String, String)>)>
📖 Call interface method EnableUnitFiles.
sourcepub async fn disable_unit_files(
&self,
files: Vec<String>,
runtime: bool,
) -> Result<Vec<(String, String, String)>>
pub async fn disable_unit_files( &self, files: Vec<String>, runtime: bool, ) -> Result<Vec<(String, String, String)>>
📖 Call interface method DisableUnitFiles.
sourcepub async fn list_units(
&self,
) -> Result<Vec<(String, String, String, String, String, String, OwnedObjectPath, u32, String, OwnedObjectPath)>>
pub async fn list_units( &self, ) -> Result<Vec<(String, String, String, String, String, String, OwnedObjectPath, u32, String, OwnedObjectPath)>>
📖 Call interface method ListUnits.
Trait Implementations§
source§impl<'p> AsMut<Proxy<'p>> for ManagerProxy<'p>
impl<'p> AsMut<Proxy<'p>> for ManagerProxy<'p>
source§impl<'p> AsRef<Proxy<'p>> for ManagerProxy<'p>
impl<'p> AsRef<Proxy<'p>> for ManagerProxy<'p>
source§impl<'p> Clone for ManagerProxy<'p>
impl<'p> Clone for ManagerProxy<'p>
source§fn clone(&self) -> ManagerProxy<'p>
fn clone(&self) -> ManagerProxy<'p>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'p> Debug for ManagerProxy<'p>
impl<'p> Debug for ManagerProxy<'p>
source§impl<'p> From<Proxy<'p>> for ManagerProxy<'p>
impl<'p> From<Proxy<'p>> for ManagerProxy<'p>
source§impl<'a> ProxyDefault for ManagerProxy<'a>
impl<'a> ProxyDefault for ManagerProxy<'a>
source§impl<'p> ProxyImpl<'p> for ManagerProxy<'p>
impl<'p> ProxyImpl<'p> for ManagerProxy<'p>
source§impl<'p> Serialize for ManagerProxy<'p>
impl<'p> Serialize for ManagerProxy<'p>
Auto Trait Implementations§
impl<'p> Freeze for ManagerProxy<'p>
impl<'p> !RefUnwindSafe for ManagerProxy<'p>
impl<'p> Send for ManagerProxy<'p>
impl<'p> Sync for ManagerProxy<'p>
impl<'p> Unpin for ManagerProxy<'p>
impl<'p> !UnwindSafe for ManagerProxy<'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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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