NSDiscardableContent

Trait NSDiscardableContent 

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

********* Discardable Content **********

See also Apple’s documentation

Provided Methods§

Source

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

Source

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

Source

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

Source

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. 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 NSDiscardableContent

Implementations on Foreign Types§

Source§

impl<T> NSDiscardableContent for ProtocolObject<T>

Implementors§

Source§

impl NSDiscardableContent for NSPurgeableData

Available on crate feature NSData only.