#[repr(C)]pub struct NSAsynchronousFetchResult<ResultType: ?Sized = AnyObject> { /* private fields */ }
Available on crate feature
NSPersistentStoreResult
only.Implementations§
source§impl<ResultType: Message> NSAsynchronousFetchResult<ResultType>
impl<ResultType: Message> NSAsynchronousFetchResult<ResultType>
pub unsafe fn fetchRequest(&self) -> Id<NSAsynchronousFetchRequest<ResultType>>
Available on crate features
NSFetchRequest
and NSPersistentStoreRequest
only.pub unsafe fn finalResult(&self) -> Option<Id<NSArray<ResultType>>>
Methods from Deref<Target = NSPersistentStoreAsynchronousResult>§
pub unsafe fn managedObjectContext(&self) -> Id<NSManagedObjectContext>
Available on crate feature
NSManagedObjectContext
only.pub unsafe fn operationError(&self) -> Option<Id<NSError>>
pub unsafe fn progress(&self) -> Option<Id<NSProgress>>
pub unsafe fn cancel(&self)
Methods from Deref<Target = NSObject>§
sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Handle messages the object doesn’t recognize.
See Apple’s documentation for details.
Methods from Deref<Target = AnyObject>§
sourcepub fn class(&self) -> &'static AnyClass
pub fn class(&self) -> &'static AnyClass
Dynamically find the class of this object.
§Example
Check that an instance of NSObject
has the precise class NSObject
.
use objc2::ClassType;
use objc2::runtime::NSObject;
let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());
sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load
instead.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load
instead.Use Ivar::load
instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T
.
See Ivar::load_ptr
for details surrounding this.
sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load_mut
instead.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Ivar::load_mut
instead.Use Ivar::load_mut
instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T
.
See Ivar::load_ptr
for details surrounding this.
Trait Implementations§
source§impl<ResultType: ?Sized + Message> AsMut<AnyObject> for NSAsynchronousFetchResult<ResultType>
impl<ResultType: ?Sized + Message> AsMut<AnyObject> for NSAsynchronousFetchResult<ResultType>
source§impl<ResultType: ?Sized + Message> AsMut<NSAsynchronousFetchResult<ResultType>> for NSAsynchronousFetchResult<ResultType>
impl<ResultType: ?Sized + Message> AsMut<NSAsynchronousFetchResult<ResultType>> for NSAsynchronousFetchResult<ResultType>
source§impl<ResultType: ?Sized + Message> AsMut<NSPersistentStoreAsynchronousResult> for NSAsynchronousFetchResult<ResultType>
impl<ResultType: ?Sized + Message> AsMut<NSPersistentStoreAsynchronousResult> for NSAsynchronousFetchResult<ResultType>
source§fn as_mut(&mut self) -> &mut NSPersistentStoreAsynchronousResult
fn as_mut(&mut self) -> &mut NSPersistentStoreAsynchronousResult
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl<ResultType: ?Sized + Message> AsMut<NSPersistentStoreResult> for NSAsynchronousFetchResult<ResultType>
impl<ResultType: ?Sized + Message> AsMut<NSPersistentStoreResult> for NSAsynchronousFetchResult<ResultType>
source§fn as_mut(&mut self) -> &mut NSPersistentStoreResult
fn as_mut(&mut self) -> &mut NSPersistentStoreResult
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl<ResultType: ?Sized + Message> AsRef<AnyObject> for NSAsynchronousFetchResult<ResultType>
impl<ResultType: ?Sized + Message> AsRef<AnyObject> for NSAsynchronousFetchResult<ResultType>
source§impl<ResultType: ?Sized + Message> AsRef<NSAsynchronousFetchResult<ResultType>> for NSAsynchronousFetchResult<ResultType>
impl<ResultType: ?Sized + Message> AsRef<NSAsynchronousFetchResult<ResultType>> for NSAsynchronousFetchResult<ResultType>
source§impl<ResultType: ?Sized + Message> AsRef<NSPersistentStoreAsynchronousResult> for NSAsynchronousFetchResult<ResultType>
impl<ResultType: ?Sized + Message> AsRef<NSPersistentStoreAsynchronousResult> for NSAsynchronousFetchResult<ResultType>
source§fn as_ref(&self) -> &NSPersistentStoreAsynchronousResult
fn as_ref(&self) -> &NSPersistentStoreAsynchronousResult
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<ResultType: ?Sized + Message> AsRef<NSPersistentStoreResult> for NSAsynchronousFetchResult<ResultType>
impl<ResultType: ?Sized + Message> AsRef<NSPersistentStoreResult> for NSAsynchronousFetchResult<ResultType>
source§fn as_ref(&self) -> &NSPersistentStoreResult
fn as_ref(&self) -> &NSPersistentStoreResult
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<ResultType: ?Sized + Message> Borrow<AnyObject> for NSAsynchronousFetchResult<ResultType>
impl<ResultType: ?Sized + Message> Borrow<AnyObject> for NSAsynchronousFetchResult<ResultType>
source§impl<ResultType: ?Sized + Message> Borrow<NSObject> for NSAsynchronousFetchResult<ResultType>
impl<ResultType: ?Sized + Message> Borrow<NSObject> for NSAsynchronousFetchResult<ResultType>
source§impl<ResultType: ?Sized + Message> Borrow<NSPersistentStoreAsynchronousResult> for NSAsynchronousFetchResult<ResultType>
impl<ResultType: ?Sized + Message> Borrow<NSPersistentStoreAsynchronousResult> for NSAsynchronousFetchResult<ResultType>
source§fn borrow(&self) -> &NSPersistentStoreAsynchronousResult
fn borrow(&self) -> &NSPersistentStoreAsynchronousResult
Immutably borrows from an owned value. Read more
source§impl<ResultType: ?Sized + Message> Borrow<NSPersistentStoreResult> for NSAsynchronousFetchResult<ResultType>
impl<ResultType: ?Sized + Message> Borrow<NSPersistentStoreResult> for NSAsynchronousFetchResult<ResultType>
source§fn borrow(&self) -> &NSPersistentStoreResult
fn borrow(&self) -> &NSPersistentStoreResult
Immutably borrows from an owned value. Read more
source§impl<ResultType: ?Sized + Message> BorrowMut<AnyObject> for NSAsynchronousFetchResult<ResultType>
impl<ResultType: ?Sized + Message> BorrowMut<AnyObject> for NSAsynchronousFetchResult<ResultType>
source§fn borrow_mut(&mut self) -> &mut AnyObject
fn borrow_mut(&mut self) -> &mut AnyObject
Mutably borrows from an owned value. Read more
source§impl<ResultType: ?Sized + Message> BorrowMut<NSObject> for NSAsynchronousFetchResult<ResultType>
impl<ResultType: ?Sized + Message> BorrowMut<NSObject> for NSAsynchronousFetchResult<ResultType>
source§fn borrow_mut(&mut self) -> &mut NSObject
fn borrow_mut(&mut self) -> &mut NSObject
Mutably borrows from an owned value. Read more
source§impl<ResultType: ?Sized + Message> BorrowMut<NSPersistentStoreAsynchronousResult> for NSAsynchronousFetchResult<ResultType>
impl<ResultType: ?Sized + Message> BorrowMut<NSPersistentStoreAsynchronousResult> for NSAsynchronousFetchResult<ResultType>
source§fn borrow_mut(&mut self) -> &mut NSPersistentStoreAsynchronousResult
fn borrow_mut(&mut self) -> &mut NSPersistentStoreAsynchronousResult
Mutably borrows from an owned value. Read more
source§impl<ResultType: ?Sized + Message> BorrowMut<NSPersistentStoreResult> for NSAsynchronousFetchResult<ResultType>
impl<ResultType: ?Sized + Message> BorrowMut<NSPersistentStoreResult> for NSAsynchronousFetchResult<ResultType>
source§fn borrow_mut(&mut self) -> &mut NSPersistentStoreResult
fn borrow_mut(&mut self) -> &mut NSPersistentStoreResult
Mutably borrows from an owned value. Read more
source§impl<ResultType: ?Sized + Message> ClassType for NSAsynchronousFetchResult<ResultType>
impl<ResultType: ?Sized + Message> ClassType for NSAsynchronousFetchResult<ResultType>
§type Super = NSPersistentStoreAsynchronousResult
type Super = NSPersistentStoreAsynchronousResult
The superclass of this class. Read more
§type Mutability = InteriorMutable
type Mutability = InteriorMutable
Whether the type is mutable or immutable. Read more
source§const NAME: &'static str = "NSAsynchronousFetchResult"
const NAME: &'static str = "NSAsynchronousFetchResult"
The name of the Objective-C class that this type represents. Read more
source§fn class() -> &'static AnyClass
fn class() -> &'static AnyClass
Get a reference to the Objective-C class that this type represents. Read more
source§fn as_super_mut(&mut self) -> &mut Self::Super
fn as_super_mut(&mut self) -> &mut Self::Super
Get a mutable reference to the superclass.
source§impl<ResultType: PartialEq + ?Sized> PartialEq for NSAsynchronousFetchResult<ResultType>
impl<ResultType: PartialEq + ?Sized> PartialEq for NSAsynchronousFetchResult<ResultType>
source§fn eq(&self, other: &NSAsynchronousFetchResult<ResultType>) -> bool
fn eq(&self, other: &NSAsynchronousFetchResult<ResultType>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<ResultType: ?Sized + Message> RefEncode for NSAsynchronousFetchResult<ResultType>
impl<ResultType: ?Sized + Message> RefEncode for NSAsynchronousFetchResult<ResultType>
source§const ENCODING_REF: Encoding = <NSPersistentStoreAsynchronousResult as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <NSPersistentStoreAsynchronousResult as ::objc2::RefEncode>::ENCODING_REF
The Objective-C type-encoding for a reference of this type. Read more
impl<ResultType: Eq + ?Sized> Eq for NSAsynchronousFetchResult<ResultType>
impl<ResultType: ?Sized + Message> Message for NSAsynchronousFetchResult<ResultType>
impl<ResultType: ?Sized> NSObjectProtocol for NSAsynchronousFetchResult<ResultType>
impl<ResultType: ?Sized> StructuralPartialEq for NSAsynchronousFetchResult<ResultType>
Auto Trait Implementations§
impl<ResultType = AnyObject> !Freeze for NSAsynchronousFetchResult<ResultType>
impl<ResultType = AnyObject> !RefUnwindSafe for NSAsynchronousFetchResult<ResultType>
impl<ResultType = AnyObject> !Send for NSAsynchronousFetchResult<ResultType>
impl<ResultType = AnyObject> !Sync for NSAsynchronousFetchResult<ResultType>
impl<ResultType = AnyObject> !Unpin for NSAsynchronousFetchResult<ResultType>
impl<ResultType = AnyObject> !UnwindSafe for NSAsynchronousFetchResult<ResultType>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more