Skip to main content

NSFileProviderTestingOperation

Trait NSFileProviderTestingOperation 

Source
pub unsafe trait NSFileProviderTestingOperation: NSObjectProtocol {
    // Provided methods
    unsafe fn type(&self) -> NSFileProviderTestingOperationType
       where Self: Sized + Message { ... }
    unsafe fn asIngestion(
        &self,
    ) -> Option<Retained<ProtocolObject<dyn NSFileProviderTestingIngestion>>>
       where Self: Sized + Message { ... }
    unsafe fn asLookup(
        &self,
    ) -> Option<Retained<ProtocolObject<dyn NSFileProviderTestingLookup>>>
       where Self: Sized + Message { ... }
    unsafe fn asCreation(
        &self,
    ) -> Option<Retained<ProtocolObject<dyn NSFileProviderTestingCreation>>>
       where Self: Sized + Message { ... }
    unsafe fn asModification(
        &self,
    ) -> Option<Retained<ProtocolObject<dyn NSFileProviderTestingModification>>>
       where Self: Sized + Message { ... }
    unsafe fn asDeletion(
        &self,
    ) -> Option<Retained<ProtocolObject<dyn NSFileProviderTestingDeletion>>>
       where Self: Sized + Message { ... }
    unsafe fn asContentFetch(
        &self,
    ) -> Option<Retained<ProtocolObject<dyn NSFileProviderTestingContentFetch>>>
       where Self: Sized + Message { ... }
    unsafe fn asChildrenEnumeration(
        &self,
    ) -> Option<Retained<ProtocolObject<dyn NSFileProviderTestingChildrenEnumeration>>>
       where Self: Sized + Message { ... }
    unsafe fn asCollisionResolution(
        &self,
    ) -> Option<Retained<ProtocolObject<dyn NSFileProviderTestingCollisionResolution>>>
       where Self: Sized + Message { ... }
}
Available on crate feature NSFileProviderTesting only.
Expand description

An operation that can scheduled.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn type(&self) -> NSFileProviderTestingOperationType
where Self: Sized + Message,

The operation type

Source

unsafe fn asIngestion( &self, ) -> Option<Retained<ProtocolObject<dyn NSFileProviderTestingIngestion>>>
where Self: Sized + Message,

Returns the operation as an Ingestion.

Returns the operation if it conforms to NSFileProviderTestingIngestion, otherwise returns nil.

Source

unsafe fn asLookup( &self, ) -> Option<Retained<ProtocolObject<dyn NSFileProviderTestingLookup>>>
where Self: Sized + Message,

Returns the operation as an Lookup.

Returns the operation if it conforms to NSFileProviderTestingLookup, otherwise returns nil.

Source

unsafe fn asCreation( &self, ) -> Option<Retained<ProtocolObject<dyn NSFileProviderTestingCreation>>>
where Self: Sized + Message,

Returns the operation as an Creation.

Returns the operation if it conforms to NSFileProviderTestingCreation, otherwise returns nil.

Source

unsafe fn asModification( &self, ) -> Option<Retained<ProtocolObject<dyn NSFileProviderTestingModification>>>
where Self: Sized + Message,

Returns the operation as an Modification.

Returns the operation if it conforms to NSFileProviderTestingModification, otherwise returns nil.

Source

unsafe fn asDeletion( &self, ) -> Option<Retained<ProtocolObject<dyn NSFileProviderTestingDeletion>>>
where Self: Sized + Message,

Returns the operation as an Deletion.

Returns the operation if it conforms to NSFileProviderTestingDeletion, otherwise returns nil.

Source

unsafe fn asContentFetch( &self, ) -> Option<Retained<ProtocolObject<dyn NSFileProviderTestingContentFetch>>>
where Self: Sized + Message,

Returns the operation as an ContentFetch.

Returns the operation if it conforms to NSFileProviderTestingContentFetch, otherwise returns nil.

Source

unsafe fn asChildrenEnumeration( &self, ) -> Option<Retained<ProtocolObject<dyn NSFileProviderTestingChildrenEnumeration>>>
where Self: Sized + Message,

Returns the operation as an ChildrenEnumeration.

Returns the operation if it conforms to NSFileProviderTestingChildrenEnumeration, otherwise returns nil.

Source

unsafe fn asCollisionResolution( &self, ) -> Option<Retained<ProtocolObject<dyn NSFileProviderTestingCollisionResolution>>>
where Self: Sized + Message,

Returns the operation as an Bounce.

Returns the operation if it conforms to NSFileProviderTestingCollisionResolution, otherwise returns nil.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSFileProviderTestingOperation

Source§

impl ProtocolType for dyn NSFileProviderTestingOperation

Source§

const NAME: &'static str = "NSFileProviderTestingOperation"

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSFileProviderTestingOperation for ProtocolObject<T>

Implementors§