pub struct AppName;Expand description
Application name configuration
This provides a flexible way to override the application name used for configuration file paths. The priority order is:
- Runtime override via
AppName::set()(highest priority) - Default “aimx” fallback
§Examples
§Using runtime override (recommended for applications)
use aimx::AppName;
// Set custom app name early in application startup
AppName::set("myapp");Implementations§
Source§impl AppName
impl AppName
Sourcepub fn set(name: &'static str)
pub fn set(name: &'static str)
Set a custom application name at runtime
This allows applications to override the app name programmatically. Note: This must be called before any configuration operations.
§Panics
Panics if the app name has already been set.
§Examples
use aimx::AppName;
// Set custom app name early in application startup
AppName::set("my_custom_app");Auto Trait Implementations§
impl Freeze for AppName
impl RefUnwindSafe for AppName
impl Send for AppName
impl Sync for AppName
impl Unpin for AppName
impl UnwindSafe for AppName
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