pub struct Application {
pub name: String,
pub ident: String,
pub bundle_path: PathBuf,
pub bundle: Retained<NSBundle>,
pub app: Retained<NSApplication>,
}
Expand description
The application, including pointers to the [NSBundle mainBundle]
and
[NSApplication sharedApplication]
instances for the relaunched app
bundle.
Fields§
§name: String
The name of the application, as shown in the Dock and menubar.
ident: String
The bundle identifier of the application, which should be a reverse-DNS style unique string identifier using only alpha-numeric characters, the ‘.’ dot, and ‘-’ hyphen.
bundle_path: PathBuf
The path to the app bundle on the filesytem from which this process is running. Note that if the app was already running from an application bundle, this might not be the same directory in which the app bundle would have been generated.
bundle: Retained<NSBundle>
A reference to the [NSBundle mainBundle]
instance for the app
bundle.
app: Retained<NSApplication>
A reference to the [NSApplication sharedApplication]
instance for
the application.
Auto Trait Implementations§
impl Freeze for Application
impl RefUnwindSafe for Application
impl Send for Application
impl Sync for Application
impl Unpin for Application
impl UnwindSafe for Application
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.