Trait objc2_foundation::NSDiscardableContent

source ·
pub unsafe trait NSDiscardableContent {
    // Provided methods
    unsafe fn beginContentAccess(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn endContentAccess(&self)
       where Self: Sized + Message { ... }
    unsafe fn discardContentIfPossible(&self)
       where Self: Sized + Message { ... }
    unsafe fn isContentDiscarded(&self) -> bool
       where Self: Sized + Message { ... }
}
Available on crate feature NSObject only.

Provided Methods§

source

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

source

unsafe fn endContentAccess(&self)
where Self: Sized + Message,

source

unsafe fn discardContentIfPossible(&self)
where Self: Sized + Message,

source

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

Trait Implementations§

source§

impl ProtocolType for dyn NSDiscardableContent

source§

const NAME: &'static str = "NSDiscardableContent"

The name of the Objective-C protocol that this type represents.
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 NSDiscardableContent

Implementations on Foreign Types§

source§

impl<T> NSDiscardableContent for ProtocolObject<T>

Implementors§

source§

impl NSDiscardableContent for NSPurgeableData

Available on crate feature NSData only.