MCPcopy Index your code

hub / github.com/GuillaumeGomez/systemd-manager / functions

Functions22 in github.com/GuillaumeGomez/systemd-manager

↓ 9 callersFunctionget_unit_file_state
Returns the current enablement status of the unit
src/systemd/dbus.rs:102
↓ 6 callersFunctionupdate_icon
Updates the status icon for the selected unit
src/systemd_gui.rs:13
↓ 6 callersFunctionupdate_journal
Updates the associated journal `TextView` with the contents of the unit's journal log.
src/systemd_gui.rs:76
↓ 4 callersFunctionget_filename
TODO: Fix clippy error and start using this everywhere
src/systemd_gui.rs:89
↓ 3 callersFunctioncreate_row
Create a `gtk::ListboxRow` and add it to the `gtk::ListBox`, and then add the `gtk::Image` to a vector so that we can later modify it when the state c
src/systemd_gui.rs:19
↓ 3 callersFunctiondisable_unit_files
Takes the unit pathname as input and disables it via dbus. If dbus replies with `[Array([], "(sss)")]`, the service is already disabled.
src/systemd/dbus.rs:154
↓ 3 callersFunctionenable_unit_files
Takes the unit pathname of a service and enables it via dbus. If dbus replies with `[Bool(true), Array([], "(sss)")]`, the service is already enabled.
src/systemd/dbus.rs:132
↓ 3 callersFunctionget_unit_info
Read the unit file and return it's contents so that we can display it in the `gtk::TextView`.
src/systemd_gui.rs:35
↓ 3 callersFunctionstart_unit
Takes a unit name as input and attempts to start it
src/systemd/dbus.rs:175
↓ 3 callersFunctionstop_unit
Takes a unit name as input and attempts to stop it.
src/systemd/dbus.rs:193
↓ 2 callersFunctionlist_unit_files
Communicates with dbus to obtain a list of unit files and returns them as a `Vec<SystemdUnit>`.
src/systemd/dbus.rs:72
↓ 1 callersFunctioncollect_togglable_services
Takes a `Vec<SystemdUnit>` as input and returns a new vector only containing services which can be enabled and disabled.
src/systemd/dbus.rs:111
↓ 1 callersFunctioncollect_togglable_sockets
Takes a `Vec<SystemdUnit>` as input and returns a new vector only containing sockets which can be enabled and disabled.
src/systemd/dbus.rs:118
↓ 1 callersFunctioncollect_togglable_timers
Takes a `Vec<SystemdUnit>` as input and returns a new vector only containing timers which can be enabled and disabled.
src/systemd/dbus.rs:125
↓ 1 callersFunctionget_unit_journal
Obtains the journal log for the given unit.
src/systemd_gui.rs:81
↓ 1 callersFunctionlaunch
()
src/systemd_gui.rs:93
↓ 1 callersFunctionmain
()
src/main.rs:9
↓ 1 callersFunctionparse_message
Takes the dbus message as input and maps the information to a `Vec<SystemdUnit>`.
src/systemd/dbus.rs:74
↓ 1 callersFunctionsetup_systemd_analyze
Use `systemd-analyze blame` to fill out the information for the Analyze `gtk::Stack`.
src/systemd_gui.rs:43
Methodblame
Returns the results of `systemd-analyze blame`
src/systemd/analyze.rs:11
Methodnew
Takes the pathname of the unit as input to determine what type of unit it is.
src/systemd/dbus.rs:34
Methodparse_time
(input: &str)
src/systemd/analyze.rs:12