pub struct AppInfo { /* private fields */ }Expand description
Immutable package identity supplied by the application at startup.
Implementations§
Source§impl AppInfo
impl AppInfo
pub fn new( name: impl Into<Arc<str>>, version: impl Into<Arc<str>>, identifier: impl Into<Arc<str>>, ) -> Result<Self>
pub fn name(&self) -> &str
pub fn version(&self) -> &str
Sourcepub fn identifier(&self) -> &str
pub fn identifier(&self) -> &str
Stable reverse-domain or similarly portable identifier used to scope application paths.
Trait Implementations§
impl Eq for AppInfo
impl StructuralPartialEq for AppInfo
Auto Trait Implementations§
impl Forget for AppInfo
impl Freeze for AppInfo
impl Move 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