Trait BEProcessCapabilityGrant

Source
pub unsafe trait BEProcessCapabilityGrant: NSObjectProtocol {
    // Provided methods
    unsafe fn invalidate(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn isValid(&self) -> bool
       where Self: Sized + Message { ... }
}
Available on crate feature BECapability only.
Expand description

An object that represents a granted capability.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn invalidate(&self) -> bool
where Self: Sized + Message,

Invalidates the grant, removing the capability from the process it was granted to.

Source

unsafe fn isValid(&self) -> bool
where Self: Sized + Message,

YES if the process has been granted the capability and the grant is still valid.

Trait Implementations§

Source§

impl ProtocolType for dyn BEProcessCapabilityGrant

Source§

const NAME: &'static str = "BEProcessCapabilityGrant"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn BEProcessCapabilityGrant

Implementations on Foreign Types§

Source§

impl<T> BEProcessCapabilityGrant for ProtocolObject<T>

Implementors§