#[repr(C)]pub struct NSURLSessionConfiguration { /* private fields */ }
Available on crate feature
NSURLSession
only.Implementations§
source§impl NSURLSessionConfiguration
impl NSURLSessionConfiguration
pub unsafe fn defaultSessionConfiguration( ) -> Retained<NSURLSessionConfiguration>
pub unsafe fn ephemeralSessionConfiguration( ) -> Retained<NSURLSessionConfiguration>
pub unsafe fn backgroundSessionConfigurationWithIdentifier( identifier: &NSString ) -> Retained<NSURLSessionConfiguration>
Available on crate feature
NSString
only.pub unsafe fn identifier(&self) -> Option<Retained<NSString>>
Available on crate feature
NSString
only.pub unsafe fn requestCachePolicy(&self) -> NSURLRequestCachePolicy
Available on crate feature
NSURLRequest
only.pub unsafe fn setRequestCachePolicy( &self, request_cache_policy: NSURLRequestCachePolicy )
Available on crate feature
NSURLRequest
only.pub unsafe fn timeoutIntervalForRequest(&self) -> NSTimeInterval
Available on crate feature
NSDate
only.pub unsafe fn setTimeoutIntervalForRequest( &self, timeout_interval_for_request: NSTimeInterval )
Available on crate feature
NSDate
only.pub unsafe fn timeoutIntervalForResource(&self) -> NSTimeInterval
Available on crate feature
NSDate
only.pub unsafe fn setTimeoutIntervalForResource( &self, timeout_interval_for_resource: NSTimeInterval )
Available on crate feature
NSDate
only.pub unsafe fn networkServiceType(&self) -> NSURLRequestNetworkServiceType
Available on crate feature
NSURLRequest
only.pub unsafe fn setNetworkServiceType( &self, network_service_type: NSURLRequestNetworkServiceType )
Available on crate feature
NSURLRequest
only.pub unsafe fn allowsCellularAccess(&self) -> bool
pub unsafe fn setAllowsCellularAccess(&self, allows_cellular_access: bool)
pub unsafe fn allowsExpensiveNetworkAccess(&self) -> bool
pub unsafe fn setAllowsExpensiveNetworkAccess( &self, allows_expensive_network_access: bool )
pub unsafe fn allowsConstrainedNetworkAccess(&self) -> bool
pub unsafe fn setAllowsConstrainedNetworkAccess( &self, allows_constrained_network_access: bool )
pub unsafe fn requiresDNSSECValidation(&self) -> bool
pub unsafe fn setRequiresDNSSECValidation( &self, requires_dnssec_validation: bool )
pub unsafe fn waitsForConnectivity(&self) -> bool
pub unsafe fn setWaitsForConnectivity(&self, waits_for_connectivity: bool)
pub unsafe fn isDiscretionary(&self) -> bool
pub unsafe fn setDiscretionary(&self, discretionary: bool)
Available on crate feature
NSString
only.Available on crate feature
NSString
only.pub unsafe fn sessionSendsLaunchEvents(&self) -> bool
pub unsafe fn setSessionSendsLaunchEvents( &self, session_sends_launch_events: bool )
pub unsafe fn connectionProxyDictionary(&self) -> Option<Retained<NSDictionary>>
Available on crate feature
NSDictionary
only.pub unsafe fn setConnectionProxyDictionary( &self, connection_proxy_dictionary: Option<&NSDictionary> )
Available on crate feature
NSDictionary
only.pub unsafe fn HTTPShouldUsePipelining(&self) -> bool
pub unsafe fn setHTTPShouldUsePipelining( &self, http_should_use_pipelining: bool )
pub unsafe fn HTTPShouldSetCookies(&self) -> bool
pub unsafe fn setHTTPShouldSetCookies(&self, http_should_set_cookies: bool)
pub unsafe fn HTTPCookieAcceptPolicy(&self) -> NSHTTPCookieAcceptPolicy
Available on crate feature
NSHTTPCookieStorage
only.pub unsafe fn setHTTPCookieAcceptPolicy( &self, http_cookie_accept_policy: NSHTTPCookieAcceptPolicy )
Available on crate feature
NSHTTPCookieStorage
only.pub unsafe fn HTTPAdditionalHeaders(&self) -> Option<Retained<NSDictionary>>
Available on crate feature
NSDictionary
only.pub unsafe fn setHTTPAdditionalHeaders( &self, http_additional_headers: Option<&NSDictionary> )
Available on crate feature
NSDictionary
only.pub unsafe fn HTTPMaximumConnectionsPerHost(&self) -> NSInteger
pub unsafe fn setHTTPMaximumConnectionsPerHost( &self, http_maximum_connections_per_host: NSInteger )
pub unsafe fn HTTPCookieStorage(&self) -> Option<Retained<NSHTTPCookieStorage>>
Available on crate feature
NSHTTPCookieStorage
only.pub unsafe fn setHTTPCookieStorage( &self, http_cookie_storage: Option<&NSHTTPCookieStorage> )
Available on crate feature
NSHTTPCookieStorage
only.pub unsafe fn URLCredentialStorage( &self ) -> Option<Retained<NSURLCredentialStorage>>
Available on crate feature
NSURLCredentialStorage
only.pub unsafe fn setURLCredentialStorage( &self, url_credential_storage: Option<&NSURLCredentialStorage> )
Available on crate feature
NSURLCredentialStorage
only.pub unsafe fn URLCache(&self) -> Option<Retained<NSURLCache>>
Available on crate feature
NSURLCache
only.pub unsafe fn setURLCache(&self, url_cache: Option<&NSURLCache>)
Available on crate feature
NSURLCache
only.pub unsafe fn shouldUseExtendedBackgroundIdleMode(&self) -> bool
pub unsafe fn setShouldUseExtendedBackgroundIdleMode( &self, should_use_extended_background_idle_mode: bool )
pub unsafe fn protocolClasses(&self) -> Option<Retained<NSArray<TodoClass>>>
Available on crate feature
NSArray
only.pub unsafe fn setProtocolClasses( &self, protocol_classes: Option<&NSArray<TodoClass>> )
Available on crate feature
NSArray
only.pub unsafe fn multipathServiceType(&self) -> NSURLSessionMultipathServiceType
pub unsafe fn setMultipathServiceType( &self, multipath_service_type: NSURLSessionMultipathServiceType )
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>
👎Deprecated: Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances
pub unsafe fn new() -> Retained<Self>
👎Deprecated: Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances
source§impl NSURLSessionConfiguration
impl NSURLSessionConfiguration
NSURLSessionDeprecated
pub unsafe fn backgroundSessionConfiguration( identifier: &NSString ) -> Retained<NSURLSessionConfiguration>
👎Deprecated
Available on crate feature
NSString
only.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 AsMut<AnyObject> for NSURLSessionConfiguration
impl AsMut<AnyObject> for NSURLSessionConfiguration
source§impl AsMut<NSObject> for NSURLSessionConfiguration
impl AsMut<NSObject> for NSURLSessionConfiguration
source§impl AsRef<AnyObject> for NSURLSessionConfiguration
impl AsRef<AnyObject> for NSURLSessionConfiguration
source§impl AsRef<NSObject> for NSURLSessionConfiguration
impl AsRef<NSObject> for NSURLSessionConfiguration
source§impl Borrow<AnyObject> for NSURLSessionConfiguration
impl Borrow<AnyObject> for NSURLSessionConfiguration
source§impl Borrow<NSObject> for NSURLSessionConfiguration
impl Borrow<NSObject> for NSURLSessionConfiguration
source§impl BorrowMut<AnyObject> for NSURLSessionConfiguration
impl BorrowMut<AnyObject> for NSURLSessionConfiguration
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 BorrowMut<NSObject> for NSURLSessionConfiguration
impl BorrowMut<NSObject> for NSURLSessionConfiguration
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 ClassType for NSURLSessionConfiguration
impl ClassType for NSURLSessionConfiguration
§type Mutability = InteriorMutable
type Mutability = InteriorMutable
Whether the type is mutable or immutable. Read more
source§const NAME: &'static str = "NSURLSessionConfiguration"
const NAME: &'static str = "NSURLSessionConfiguration"
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 Debug for NSURLSessionConfiguration
impl Debug for NSURLSessionConfiguration
source§impl Deref for NSURLSessionConfiguration
impl Deref for NSURLSessionConfiguration
source§impl DerefMut for NSURLSessionConfiguration
impl DerefMut for NSURLSessionConfiguration
source§impl Hash for NSURLSessionConfiguration
impl Hash for NSURLSessionConfiguration
source§impl NSCopying for NSURLSessionConfiguration
Available on crate feature NSObject
only.
impl NSCopying for NSURLSessionConfiguration
Available on crate feature
NSObject
only.source§impl NSObjectProtocol for NSURLSessionConfiguration
impl NSObjectProtocol for NSURLSessionConfiguration
source§fn isEqual(&self, other: &AnyObject) -> bool
fn isEqual(&self, other: &AnyObject) -> bool
Check whether the object is equal to an arbitrary other object. Read more
source§fn hash(&self) -> usize
fn hash(&self) -> usize
An integer that can be used as a table address in a hash table
structure. Read more
source§fn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of the class, or one of its
subclasses. Read more
source§fn is_kind_of<T>(&self) -> bool
fn is_kind_of<T>(&self) -> bool
Check if the object is an instance of the class type, or one of its
subclasses. Read more
source§fn isMemberOfClass(&self, cls: &AnyClass) -> bool
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of a specific class, without
checking subclasses. Read more
source§fn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
Check whether the object implements or inherits a method with the
given selector. Read more
source§fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
Check whether the object conforms to a given protocol. Read more
source§fn debugDescription(&self) -> Retained<NSObject>
fn debugDescription(&self) -> Retained<NSObject>
A textual representation of the object to use when debugging. Read more
source§impl PartialEq for NSURLSessionConfiguration
impl PartialEq for NSURLSessionConfiguration
source§fn eq(&self, other: &NSURLSessionConfiguration) -> bool
fn eq(&self, other: &NSURLSessionConfiguration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RefEncode for NSURLSessionConfiguration
impl RefEncode for NSURLSessionConfiguration
source§const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
The Objective-C type-encoding for a reference of this type. Read more
impl Eq for NSURLSessionConfiguration
impl Message for NSURLSessionConfiguration
impl Send for NSURLSessionConfiguration
impl StructuralPartialEq for NSURLSessionConfiguration
impl Sync for NSURLSessionConfiguration
Auto Trait Implementations§
impl !Freeze for NSURLSessionConfiguration
impl !RefUnwindSafe for NSURLSessionConfiguration
impl !Unpin for NSURLSessionConfiguration
impl !UnwindSafe for NSURLSessionConfiguration
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
source§impl<T> CounterpartOrSelf for T
impl<T> CounterpartOrSelf for T
§type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
The immutable counterpart of the type, or
Self
if the type has no
immutable counterpart. Read more§type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
The mutable counterpart of the type, or
Self
if the type has no
mutable counterpart. Read more