pub struct AppInfo { /* private fields */ }Expand description
A high-level wrapper around the FFI’s CFE_ES_AppInfo_t.
This struct contains detailed information about a cFE application, such as its name, entry point, memory layout, and task IDs.
Implementations§
Source§impl AppInfo
impl AppInfo
Sourcepub fn name(&self) -> Result<CString<{ _ }>>
pub fn name(&self) -> Result<CString<{ _ }>>
Returns the registered name of the application.
§Errors
Returns an error if the name from the underlying FFI struct is not
valid UTF-8 or cannot fit into the CString buffer.
Sourcepub fn copy_entry_point<'a>(&self, buffer: &'a mut [u8]) -> Result<&'a str>
pub fn copy_entry_point<'a>(&self, buffer: &'a mut [u8]) -> Result<&'a str>
Sourcepub fn copy_file_name<'a>(&self, buffer: &'a mut [u8]) -> Result<&'a str>
pub fn copy_file_name<'a>(&self, buffer: &'a mut [u8]) -> Result<&'a str>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppInfo
impl RefUnwindSafe for AppInfo
impl Send for AppInfo
impl Sync for AppInfo
impl Unpin for AppInfo
impl UnsafeUnpin for AppInfo
impl UnwindSafe for AppInfo
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