pub struct CFUserNotification { /* private fields */ }Available on crate feature
CFUserNotification only.Expand description
Implementations§
Source§impl CFUserNotification
impl CFUserNotification
Sourcepub unsafe fn new(
allocator: Option<&CFAllocator>,
timeout: CFTimeInterval,
flags: CFOptionFlags,
error: *mut i32,
dictionary: Option<&CFDictionary>,
) -> Option<CFRetained<CFUserNotification>>
Available on crate features CFDate and CFDictionary only.
pub unsafe fn new( allocator: Option<&CFAllocator>, timeout: CFTimeInterval, flags: CFOptionFlags, error: *mut i32, dictionary: Option<&CFDictionary>, ) -> Option<CFRetained<CFUserNotification>>
CFDate and CFDictionary only.§Safety
allocatormight not allowNone.errormust be a valid pointer.dictionarygenerics must be of the correct type.dictionarymight not allowNone.
Sourcepub unsafe fn receive_response(
&self,
timeout: CFTimeInterval,
response_flags: *mut CFOptionFlags,
) -> i32
Available on crate feature CFDate only.
pub unsafe fn receive_response( &self, timeout: CFTimeInterval, response_flags: *mut CFOptionFlags, ) -> i32
CFDate only.§Safety
response_flags must be a valid pointer.
Sourcepub unsafe fn response_value(
&self,
key: Option<&CFString>,
idx: CFIndex,
) -> Option<CFRetained<CFString>>
pub unsafe fn response_value( &self, key: Option<&CFString>, idx: CFIndex, ) -> Option<CFRetained<CFString>>
§Safety
key might not allow None.
pub fn response_dictionary(&self) -> Option<CFRetained<CFDictionary>>
Available on crate feature
CFDictionary only.Sourcepub unsafe fn update(
&self,
timeout: CFTimeInterval,
flags: CFOptionFlags,
dictionary: Option<&CFDictionary>,
) -> i32
Available on crate features CFDate and CFDictionary only.
pub unsafe fn update( &self, timeout: CFTimeInterval, flags: CFOptionFlags, dictionary: Option<&CFDictionary>, ) -> i32
CFDate and CFDictionary only.§Safety
dictionarygenerics must be of the correct type.dictionarymight not allowNone.
pub fn cancel(&self) -> i32
Sourcepub unsafe fn new_run_loop_source(
allocator: Option<&CFAllocator>,
user_notification: Option<&CFUserNotification>,
callout: CFUserNotificationCallBack,
order: CFIndex,
) -> Option<CFRetained<CFRunLoopSource>>
Available on crate feature CFRunLoop only.
pub unsafe fn new_run_loop_source( allocator: Option<&CFAllocator>, user_notification: Option<&CFUserNotification>, callout: CFUserNotificationCallBack, order: CFIndex, ) -> Option<CFRetained<CFRunLoopSource>>
CFRunLoop only.§Safety
allocatormight not allowNone.user_notificationmight not allowNone.calloutmust be implemented correctly.
pub fn display_notice( timeout: CFTimeInterval, flags: CFOptionFlags, icon_url: Option<&CFURL>, sound_url: Option<&CFURL>, localization_url: Option<&CFURL>, alert_header: Option<&CFString>, alert_message: Option<&CFString>, default_button_title: Option<&CFString>, ) -> i32
Available on crate features
CFDate and CFURL only.Sourcepub unsafe fn display_alert(
timeout: CFTimeInterval,
flags: CFOptionFlags,
icon_url: Option<&CFURL>,
sound_url: Option<&CFURL>,
localization_url: Option<&CFURL>,
alert_header: Option<&CFString>,
alert_message: Option<&CFString>,
default_button_title: Option<&CFString>,
alternate_button_title: Option<&CFString>,
other_button_title: Option<&CFString>,
response_flags: *mut CFOptionFlags,
) -> i32
Available on crate features CFDate and CFURL only.
pub unsafe fn display_alert( timeout: CFTimeInterval, flags: CFOptionFlags, icon_url: Option<&CFURL>, sound_url: Option<&CFURL>, localization_url: Option<&CFURL>, alert_header: Option<&CFString>, alert_message: Option<&CFString>, default_button_title: Option<&CFString>, alternate_button_title: Option<&CFString>, other_button_title: Option<&CFString>, response_flags: *mut CFOptionFlags, ) -> i32
CFDate and CFURL only.§Safety
icon_urlmight not allowNone.sound_urlmight not allowNone.localization_urlmight not allowNone.alert_headermight not allowNone.alert_messagemight not allowNone.default_button_titlemight not allowNone.alternate_button_titlemight not allowNone.other_button_titlemight not allowNone.response_flagsmust be a valid pointer.
Source§impl CFUserNotification
impl CFUserNotification
pub extern "C" fn check_box_checked(i: CFIndex) -> CFOptionFlags
pub extern "C" fn secure_text_field(i: CFIndex) -> CFOptionFlags
pub fn pop_up_selection(n: CFIndex) -> CFOptionFlags
Methods from Deref<Target = CFType>§
Sourcepub fn downcast_ref<T: ConcreteType>(&self) -> Option<&T>
pub fn downcast_ref<T: ConcreteType>(&self) -> Option<&T>
Attempt to downcast the type to that of type T.
This is the reference-variant. Use CFRetained::downcast if you
want to convert a retained type. See also ConcreteType for more
details on which types support being converted to.
Sourcepub fn retain_count(&self) -> usize
pub fn retain_count(&self) -> usize
Get the reference count of the object.
This function may be useful for debugging. You normally do not use this function otherwise.
Beware that some things (like CFNumbers, small CFStrings etc.) may
not have a normal retain count for optimization purposes, and can
return usize::MAX in that case.
Trait Implementations§
Source§impl AsRef<AnyObject> for CFUserNotification
impl AsRef<AnyObject> for CFUserNotification
Source§impl AsRef<CFType> for CFUserNotification
impl AsRef<CFType> for CFUserNotification
Source§impl AsRef<CFUserNotification> for CFUserNotification
impl AsRef<CFUserNotification> for CFUserNotification
Source§impl Borrow<AnyObject> for CFUserNotification
impl Borrow<AnyObject> for CFUserNotification
Source§impl Borrow<CFType> for CFUserNotification
impl Borrow<CFType> for CFUserNotification
Source§impl ConcreteType for CFUserNotification
impl ConcreteType for CFUserNotification
Source§impl Debug for CFUserNotification
impl Debug for CFUserNotification
Source§impl Deref for CFUserNotification
impl Deref for CFUserNotification
Source§impl Hash for CFUserNotification
impl Hash for CFUserNotification
Source§impl Message for CFUserNotification
impl Message for CFUserNotification
Source§impl PartialEq for CFUserNotification
impl PartialEq for CFUserNotification
Source§impl RefEncode for CFUserNotification
impl RefEncode for CFUserNotification
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
Source§impl Type for CFUserNotification
impl Type for CFUserNotification
Source§fn retain(&self) -> CFRetained<Self> ⓘwhere
Self: Sized,
fn retain(&self) -> CFRetained<Self> ⓘwhere
Self: Sized,
Increment the reference count of the receiver. Read more
Source§fn as_concrete_TypeRef(&self) -> &Self
fn as_concrete_TypeRef(&self) -> &Self
👎Deprecated: this is redundant
Helper for easier transition from the
core-foundation crate.Source§unsafe fn wrap_under_get_rule(ptr: *const Self) -> CFRetained<Self> ⓘwhere
Self: Sized,
unsafe fn wrap_under_get_rule(ptr: *const Self) -> CFRetained<Self> ⓘwhere
Self: Sized,
👎Deprecated: use CFRetained::retain
Helper for easier transition from the
core-foundation crate. Read moreSource§fn as_CFTypeRef(&self) -> &CFType
fn as_CFTypeRef(&self) -> &CFType
👎Deprecated: this is redundant (CF types deref to CFType)
Helper for easier transition from the
core-foundation crate.Source§unsafe fn wrap_under_create_rule(ptr: *const Self) -> CFRetained<Self> ⓘwhere
Self: Sized,
unsafe fn wrap_under_create_rule(ptr: *const Self) -> CFRetained<Self> ⓘwhere
Self: Sized,
👎Deprecated: use CFRetained::from_raw
Helper for easier transition from the
core-foundation crate. Read moreimpl Eq for CFUserNotification
Auto Trait Implementations§
impl !Freeze for CFUserNotification
impl !RefUnwindSafe for CFUserNotification
impl !Send for CFUserNotification
impl !Sync for CFUserNotification
impl !Unpin for CFUserNotification
impl !UnwindSafe for CFUserNotification
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