pub struct SystemdDbus {
pub rpc_conn: RpcConn,
}
Fields§
§rpc_conn: RpcConn
Implementations§
Source§impl 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 Freeze for SystemdDbus
impl !RefUnwindSafe for SystemdDbus
impl Send for SystemdDbus
impl Sync for SystemdDbus
impl Unpin for SystemdDbus
impl !UnwindSafe for SystemdDbus
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> 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