pub struct AppInfo {
pub thread: thread_id,
pub team: team_id,
pub port: port_id,
pub flags: u32,
pub path: String,
pub signature: String,
}
Expand description
Contains the information about a running application
The information is provided by Haiku’s registrar, and can be queried using
the methods of the ROSTER
object
Fields§
§thread: thread_id
The thread id for the main thread or -1 if the application is not running
team: team_id
The team id for the running instance or -1 if the application is not running
port: port_id
The port that is listening to Messages to be processed by the application’s main looper
flags: u32
Any flags for this running application
You probably want to use the launch_type()
function to get them
path: String
The path of the executable
signature: String
The mime type that represents the application’s signature
Implementations§
Source§impl AppInfo
impl AppInfo
Sourcepub fn launch_type(&self) -> LaunchType
pub fn launch_type(&self) -> LaunchType
Get the LaunchType for this application
Sourcepub fn is_background(&self) -> bool
pub fn is_background(&self) -> bool
Determine if the application is a background application
Sourcepub fn is_argv_only(&self) -> bool
pub fn is_argv_only(&self) -> bool
Determine if the application only allows command line arguments for passing data, not messages.