Struct objc2_foundation::NSProcessInfo
source · [−]#[repr(C)]pub struct NSProcessInfo { /* private fields */ }
Expand description
A collection of information about the current process.
Implementations
sourceimpl NSProcessInfo
impl NSProcessInfo
sourceimpl NSProcessInfo
impl NSProcessInfo
pub fn process_info() -> Id<NSProcessInfo, Shared>
pub fn process_name(&self) -> Id<NSString, Shared>
Methods from Deref<Target = NSObject>
Methods from Deref<Target = Object>
sourcepub unsafe fn ivar<T>(&self, name: &str) -> &T where
T: Encode,
pub unsafe fn ivar<T>(&self, name: &str) -> &T where
T: Encode,
Returns a shared reference to the ivar with the given name.
Panics
Panics if the object has no ivar with the given name, or the type
encoding of the ivar differs from the type encoding of T
.
Safety
The caller must ensure that the ivar is actually of type T
.
Library implementors should expose a safe interface to the ivar.
sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &T where
T: Encode,
👎 Deprecated: Use Object::ivar
instead.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &T where
T: Encode,
Use Object::ivar
instead.
sourcepub unsafe fn ivar_mut<T>(&mut self, name: &str) -> &mut T where
T: Encode,
pub unsafe fn ivar_mut<T>(&mut self, name: &str) -> &mut T where
T: Encode,
Returns a mutable reference to the ivar with the given name.
Panics
Panics if the object has no ivar with the given name, or the type
encoding of the ivar differs from the type encoding of T
.
Safety
The caller must ensure that the ivar is actually of type T
.
Library implementors should expose a safe interface to the ivar.
sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut T where
T: Encode,
👎 Deprecated: Use Object::ivar_mut
instead.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut T where
T: Encode,
Use Object::ivar_mut
instead.
sourcepub unsafe fn set_ivar<T>(&mut self, name: &str, value: T) where
T: Encode,
pub unsafe fn set_ivar<T>(&mut self, name: &str, value: T) where
T: Encode,
Sets the value of the ivar with the given name.
Panics
Panics if the object has no ivar with the given name, or the type
encoding of the ivar differs from the type encoding of T
.
Safety
The caller must ensure that the ivar is actually of type T
.
Library implementors should expose a safe interface to the ivar.
Trait Implementations
sourceimpl AsMut<NSObject> for NSProcessInfo
impl AsMut<NSObject> for NSProcessInfo
sourceimpl AsMut<NSProcessInfo> for NSProcessInfo
impl AsMut<NSProcessInfo> for NSProcessInfo
sourceimpl AsMut<Object> for NSProcessInfo
impl AsMut<Object> for NSProcessInfo
sourceimpl AsRef<NSObject> for NSProcessInfo
impl AsRef<NSObject> for NSProcessInfo
sourceimpl AsRef<NSProcessInfo> for NSProcessInfo
impl AsRef<NSProcessInfo> for NSProcessInfo
sourceimpl AsRef<Object> for NSProcessInfo
impl AsRef<Object> for NSProcessInfo
sourceimpl Borrow<NSObject> for NSProcessInfo
impl Borrow<NSObject> for NSProcessInfo
sourceimpl Borrow<Object> for NSProcessInfo
impl Borrow<Object> for NSProcessInfo
sourceimpl BorrowMut<NSObject> for NSProcessInfo
impl BorrowMut<NSObject> for NSProcessInfo
sourcefn borrow_mut(&mut self) -> &mut NSObject
fn borrow_mut(&mut self) -> &mut NSObject
Mutably borrows from an owned value. Read more
sourceimpl BorrowMut<Object> for NSProcessInfo
impl BorrowMut<Object> for NSProcessInfo
sourcefn borrow_mut(&mut self) -> &mut Object
fn borrow_mut(&mut self) -> &mut Object
Mutably borrows from an owned value. Read more
sourceimpl Debug for NSProcessInfo
impl Debug for NSProcessInfo
sourceimpl Deref for NSProcessInfo
impl Deref for NSProcessInfo
sourceimpl DerefMut for NSProcessInfo
impl DerefMut for NSProcessInfo
sourceimpl Hash for NSProcessInfo
impl Hash for NSProcessInfo
sourceimpl PartialEq<NSProcessInfo> for NSProcessInfo
impl PartialEq<NSProcessInfo> for NSProcessInfo
sourceimpl RefEncode for NSProcessInfo
impl RefEncode for NSProcessInfo
sourceconst ENCODING_REF: Encoding<'static> = ::objc2::Encoding::Object
const ENCODING_REF: Encoding<'static> = ::objc2::Encoding::Object
The Objective-C type-encoding for a reference of this type. Read more
impl Eq for NSProcessInfo
impl Message for NSProcessInfo
impl Send for NSProcessInfo
impl Sync for NSProcessInfo
Auto Trait Implementations
impl !RefUnwindSafe for NSProcessInfo
impl !Unpin for NSProcessInfo
impl !UnwindSafe for NSProcessInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more