pub struct AppId { /* private fields */ }Expand description
The app asking for a mode. id is the binding key ("viewright"); dir_name is the folder
under Orthic Labs that holds the app’s own data ("ViewRight").
Implementations§
Source§impl AppId
impl AppId
Sourcepub const fn new(id: &'static str) -> AppId
pub const fn new(id: &'static str) -> AppId
An app whose data folder carries the same name as its id.
Sourcepub const fn with_dir(id: &'static str, dir_name: &'static str) -> AppId
pub const fn with_dir(id: &'static str, dir_name: &'static str) -> AppId
An app whose data folder differs from its id.
pub const fn id(&self) -> &'static str
pub const fn dir_name(&self) -> &'static str
Trait Implementations§
impl Copy for AppId
impl Eq for AppId
impl StructuralPartialEq for AppId
Auto Trait Implementations§
impl Freeze for AppId
impl RefUnwindSafe for AppId
impl Send for AppId
impl Sync for AppId
impl Unpin for AppId
impl UnsafeUnpin for AppId
impl UnwindSafe for AppId
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