pub struct SystemdUnit { /* private fields */ }Implementations§
Source§impl SystemdUnit
impl SystemdUnit
pub fn new( connection: Rc<RefCell<SystemdConnection>>, name: String, description: String, load_state: SystemdLoadState, active_state: SystemdActiveState, sub_state: SystemdSubState, following_unit: Option<String>, unit_object_path: String, job_id: u32, job_type: SystemdJobType, job_object_path: String, ) -> SystemdUnit
pub fn name(&self) -> &str
pub fn description(&self) -> &str
pub fn load_state(&self) -> &SystemdLoadState
pub fn active_state(&self) -> &SystemdActiveState
pub fn sub_state(&self) -> &SystemdSubState
Auto Trait Implementations§
impl !RefUnwindSafe for SystemdUnit
impl !Send for SystemdUnit
impl !Sync for SystemdUnit
impl !UnwindSafe for SystemdUnit
impl Freeze for SystemdUnit
impl Unpin for SystemdUnit
impl UnsafeUnpin for SystemdUnit
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