#[repr(transparent)]pub struct BGTaskSchedulerErrorCode(pub NSInteger);BGTaskScheduler only.Expand description
An enumeration of the task scheduling errors.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl BGTaskSchedulerErrorCode
impl BGTaskSchedulerErrorCode
A task scheduling error indicating that the app or extension can’t schedule background work.
This error usually occurs for one of following reasons:
- The user has disabled background refresh in settings.
- The app is running on Simulator which doesn’t support background processing.
- The keyboard extension either hasn’t set
<doc
://com.apple.documentation/documentation/bundleresources/information_property_list/nsextension/nsextensionattributes/requestsopenaccess>
to
YESin The Info.plist File, or the user hasn’t granted open access. - The extension type isn’t able to schedule background tasks.
Sourcepub const TooManyPendingTaskRequests: Self
pub const TooManyPendingTaskRequests: Self
A task scheduling error indicating that there are too many pending tasks of the type requested.
Try canceling some existing task requests and then resubmit the request that failed.
Sourcepub const NotPermitted: Self
pub const NotPermitted: Self
A task scheduling error indicating the app isn’t permitted to schedule the task.
There are four causes for this error:
- The app doesn’t set the appropriate mode in the <doc ://com.apple.documentation/documentation/bundleresources/information_property_list/uibackgroundmodes> array.
- The task identifier of the submitted task wasn’t in the <doc ://com.apple.documentation/documentation/bundleresources/information_property_list/bgtaskschedulerpermittedidentifiers> array in the Info.plist.
- The task requested additional
BGContinuedProcessingTaskRequestResourcesthat are unavailable. - The user has explicitly denied background launches for your app.
Sourcepub const ImmediateRunIneligible: Self
pub const ImmediateRunIneligible: Self
A BGContinuedProcessingTaskRequest was not allowed to immediately run due to system conditions.
This will only be returned when using the BGContinuedProcessingTaskRequestSubmissionStrategyFail when
submitting a BGContinuedProcessingTaskRequest. Task requests that are successfully ran will not be
associated with any error code.
Trait Implementations§
Source§impl Clone for BGTaskSchedulerErrorCode
impl Clone for BGTaskSchedulerErrorCode
Source§fn clone(&self) -> BGTaskSchedulerErrorCode
fn clone(&self) -> BGTaskSchedulerErrorCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more