#[repr(C)]pub struct NSAsynchronousFetchRequest<ResultType: ?Sized = AnyObject> { /* private fields */ }
Available on crate features
NSFetchRequest
and NSPersistentStoreRequest
only.Implementations§
source§impl<ResultType: Message> NSAsynchronousFetchRequest<ResultType>
impl<ResultType: Message> NSAsynchronousFetchRequest<ResultType>
pub unsafe fn fetchRequest(&self) -> Id<NSFetchRequest<ResultType>>
pub unsafe fn completionBlock( &self ) -> NSPersistentStoreAsynchronousFetchResultCompletionBlock
Available on crate features
NSPersistentStoreResult
and block2
only.pub unsafe fn estimatedResultCount(&self) -> NSInteger
pub unsafe fn setEstimatedResultCount(&self, estimated_result_count: NSInteger)
pub unsafe fn initWithFetchRequest_completionBlock( this: Allocated<Self>, request: &NSFetchRequest<ResultType>, blk: Option<&Block<dyn Fn(NonNull<NSAsynchronousFetchResult<ResultType>>)>> ) -> Id<Self>
Available on crate features
NSPersistentStoreResult
and block2
only.Methods from Deref<Target = NSPersistentStoreRequest>§
pub unsafe fn affectedStores(&self) -> Option<Id<NSArray<NSPersistentStore>>>
Available on crate feature
NSPersistentStore
only.pub unsafe fn setAffectedStores( &self, affected_stores: Option<&NSArray<NSPersistentStore>> )
Available on crate feature
NSPersistentStore
only.pub unsafe fn requestType(&self) -> NSPersistentStoreRequestType
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 NSAsynchronousFetchRequest<ResultType>
impl<ResultType: ?Sized + Message> AsMut<AnyObject> for NSAsynchronousFetchRequest<ResultType>
source§impl<ResultType: ?Sized + Message> AsMut<NSAsynchronousFetchRequest<ResultType>> for NSAsynchronousFetchRequest<ResultType>
impl<ResultType: ?Sized + Message> AsMut<NSAsynchronousFetchRequest<ResultType>> for NSAsynchronousFetchRequest<ResultType>
source§impl<ResultType: ?Sized + Message> AsMut<NSObject> for NSAsynchronousFetchRequest<ResultType>
impl<ResultType: ?Sized + Message> AsMut<NSObject> for NSAsynchronousFetchRequest<ResultType>
source§impl<ResultType: ?Sized + Message> AsMut<NSPersistentStoreRequest> for NSAsynchronousFetchRequest<ResultType>
impl<ResultType: ?Sized + Message> AsMut<NSPersistentStoreRequest> for NSAsynchronousFetchRequest<ResultType>
source§fn as_mut(&mut self) -> &mut NSPersistentStoreRequest
fn as_mut(&mut self) -> &mut NSPersistentStoreRequest
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl<ResultType: ?Sized + Message> AsRef<AnyObject> for NSAsynchronousFetchRequest<ResultType>
impl<ResultType: ?Sized + Message> AsRef<AnyObject> for NSAsynchronousFetchRequest<ResultType>
source§impl<ResultType: ?Sized + Message> AsRef<NSAsynchronousFetchRequest<ResultType>> for NSAsynchronousFetchRequest<ResultType>
impl<ResultType: ?Sized + Message> AsRef<NSAsynchronousFetchRequest<ResultType>> for NSAsynchronousFetchRequest<ResultType>
source§impl<ResultType: ?Sized + Message> AsRef<NSObject> for NSAsynchronousFetchRequest<ResultType>
impl<ResultType: ?Sized + Message> AsRef<NSObject> for NSAsynchronousFetchRequest<ResultType>
source§impl<ResultType: ?Sized + Message> AsRef<NSPersistentStoreRequest> for NSAsynchronousFetchRequest<ResultType>
impl<ResultType: ?Sized + Message> AsRef<NSPersistentStoreRequest> for NSAsynchronousFetchRequest<ResultType>
source§fn as_ref(&self) -> &NSPersistentStoreRequest
fn as_ref(&self) -> &NSPersistentStoreRequest
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<ResultType: ?Sized + Message> Borrow<AnyObject> for NSAsynchronousFetchRequest<ResultType>
impl<ResultType: ?Sized + Message> Borrow<AnyObject> for NSAsynchronousFetchRequest<ResultType>
source§impl<ResultType: ?Sized + Message> Borrow<NSObject> for NSAsynchronousFetchRequest<ResultType>
impl<ResultType: ?Sized + Message> Borrow<NSObject> for NSAsynchronousFetchRequest<ResultType>
source§impl<ResultType: ?Sized + Message> Borrow<NSPersistentStoreRequest> for NSAsynchronousFetchRequest<ResultType>
impl<ResultType: ?Sized + Message> Borrow<NSPersistentStoreRequest> for NSAsynchronousFetchRequest<ResultType>
source§fn borrow(&self) -> &NSPersistentStoreRequest
fn borrow(&self) -> &NSPersistentStoreRequest
Immutably borrows from an owned value. Read more
source§impl<ResultType: ?Sized + Message> BorrowMut<AnyObject> for NSAsynchronousFetchRequest<ResultType>
impl<ResultType: ?Sized + Message> BorrowMut<AnyObject> for NSAsynchronousFetchRequest<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 NSAsynchronousFetchRequest<ResultType>
impl<ResultType: ?Sized + Message> BorrowMut<NSObject> for NSAsynchronousFetchRequest<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<NSPersistentStoreRequest> for NSAsynchronousFetchRequest<ResultType>
impl<ResultType: ?Sized + Message> BorrowMut<NSPersistentStoreRequest> for NSAsynchronousFetchRequest<ResultType>
source§fn borrow_mut(&mut self) -> &mut NSPersistentStoreRequest
fn borrow_mut(&mut self) -> &mut NSPersistentStoreRequest
Mutably borrows from an owned value. Read more
source§impl<ResultType: ?Sized + Message> ClassType for NSAsynchronousFetchRequest<ResultType>
impl<ResultType: ?Sized + Message> ClassType for NSAsynchronousFetchRequest<ResultType>
§type Super = NSPersistentStoreRequest
type Super = NSPersistentStoreRequest
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 = "NSAsynchronousFetchRequest"
const NAME: &'static str = "NSAsynchronousFetchRequest"
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 NSAsynchronousFetchRequest<ResultType>
impl<ResultType: PartialEq + ?Sized> PartialEq for NSAsynchronousFetchRequest<ResultType>
source§fn eq(&self, other: &NSAsynchronousFetchRequest<ResultType>) -> bool
fn eq(&self, other: &NSAsynchronousFetchRequest<ResultType>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<ResultType: ?Sized + Message> RefEncode for NSAsynchronousFetchRequest<ResultType>
impl<ResultType: ?Sized + Message> RefEncode for NSAsynchronousFetchRequest<ResultType>
source§const ENCODING_REF: Encoding = <NSPersistentStoreRequest as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <NSPersistentStoreRequest as ::objc2::RefEncode>::ENCODING_REF
The Objective-C type-encoding for a reference of this type. Read more
impl<ResultType: Eq + ?Sized> Eq for NSAsynchronousFetchRequest<ResultType>
impl<ResultType: ?Sized + Message> Message for NSAsynchronousFetchRequest<ResultType>
impl<ResultType: ?Sized + IsIdCloneable> NSCopying for NSAsynchronousFetchRequest<ResultType>
impl<ResultType: ?Sized> NSObjectProtocol for NSAsynchronousFetchRequest<ResultType>
impl<ResultType: ?Sized> StructuralPartialEq for NSAsynchronousFetchRequest<ResultType>
Auto Trait Implementations§
impl<ResultType = AnyObject> !Freeze for NSAsynchronousFetchRequest<ResultType>
impl<ResultType = AnyObject> !RefUnwindSafe for NSAsynchronousFetchRequest<ResultType>
impl<ResultType = AnyObject> !Send for NSAsynchronousFetchRequest<ResultType>
impl<ResultType = AnyObject> !Sync for NSAsynchronousFetchRequest<ResultType>
impl<ResultType = AnyObject> !Unpin for NSAsynchronousFetchRequest<ResultType>
impl<ResultType = AnyObject> !UnwindSafe for NSAsynchronousFetchRequest<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