Struct rd_util::systemd::SystemdDbus  
source · [−]pub struct SystemdDbus {
    pub rpc_conn: RpcConn,
}Fields
rpc_conn: RpcConnImplementations
sourceimpl SystemdDbus
 
impl SystemdDbus
pub fn new(user: bool) -> Result<SystemdDbus>
pub fn send_msg_and_wait(
    &mut self, 
    msg: &mut MarshalledMessage
) -> Result<MarshalledMessage>
pub fn daemon_reload(&mut self) -> Result<()>
pub fn get_unit_props<'u>(
    &mut self, 
    name: &str
) -> Result<Param<'static, 'static>>
pub fn set_unit_props(
    &mut self, 
    name: &str, 
    props: Vec<(String, PropVariant)>
) -> Result<()>
pub fn start_unit(&mut self, name: &str) -> Result<()>
pub fn stop_unit(&mut self, name: &str) -> Result<()>
pub fn reset_failed_unit(&mut self, name: &str) -> Result<()>
pub fn restart_unit(&mut self, name: &str) -> Result<()>
pub fn start_transient_svc(
    &mut self, 
    name: String, 
    args: Vec<String>, 
    envs: Vec<String>, 
    extra_props: Vec<(String, PropVariant)>
) -> Result<()>
Auto Trait Implementations
impl !RefUnwindSafe for SystemdDbus
impl Send for SystemdDbus
impl Sync for SystemdDbus
impl Unpin for SystemdDbus
impl !UnwindSafe for SystemdDbus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more