#[repr(C)]pub struct MDQueryBatchingParams {
pub first_max_num: usize,
pub first_max_ms: usize,
pub progress_max_num: usize,
pub progress_max_ms: usize,
pub update_max_num: usize,
pub update_max_ms: usize,
}
MDQuery
and Metadata
only.Expand description
Structure containing the progress notification batching parameters of an MDQuery. The first notification can be triggered by the either first_max_num or first_max_ms limit being exceeded. Subsequent notifications are triggered by either the progress_max_num or progress_max_ms limit. The default batching parameters are undefined and subject to change. Field: first_max_num The maximum number of results that can accumulate before a progress notification is sent out by the MDQuery, for the first notification. Field: first_max_ms The maximum number of milliseconds that can pass before a progress notification is sent out. This value is advisory, in that the notification will be triggered “at some point after first_max_ms milliseconds have passed since the query began accumulating results”, but generally not very long after, for the first progress notification. Field: progress_max_num The maximum number of results that can accumulate before a progress notification is sent out by the MDQuery, for notifications after the first, during the initial gathering phase of the query. Field: progress_max_ms The maximum number of milliseconds that can pass before a progress notification is sent out. This value is advisory, in that the notification will be triggered “at some point after first_max_ms milliseconds have passed since the query began accumulating results”, but generally not very long after, for progress notifications after the first, during the initial gathering phase of the query. Field: update_max_num The maximum number of results that can accumulate before an update notification is sent out by the MDQuery, for notifications after the gathering phase of the query has finished. Field: update_max_ms The maximum number of milliseconds that can pass before a progress notification is sent out. This value is advisory, in that the notification will be triggered “at some point after first_max_ms milliseconds have passed since the query began accumulating results”, but generally not very long after, for update notifications after the gathering phase of the query has finished.
See also Apple’s documentation
Fields§
§first_max_num: usize
§first_max_ms: usize
§progress_max_num: usize
§progress_max_ms: usize
§update_max_num: usize
§update_max_ms: usize
Trait Implementations§
Source§impl Clone for MDQueryBatchingParams
impl Clone for MDQueryBatchingParams
Source§fn clone(&self) -> MDQueryBatchingParams
fn clone(&self) -> MDQueryBatchingParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MDQueryBatchingParams
impl Debug for MDQueryBatchingParams
Source§impl Encode for MDQueryBatchingParams
Available on crate feature objc2
only.
impl Encode for MDQueryBatchingParams
objc2
only.Source§impl PartialEq for MDQueryBatchingParams
impl PartialEq for MDQueryBatchingParams
Source§impl RefEncode for MDQueryBatchingParams
Available on crate feature objc2
only.
impl RefEncode for MDQueryBatchingParams
objc2
only.