#[repr(C)]pub struct WSMethodInvocation { /* private fields */ }
Available on crate features
WSMethodInvocation
and OSServices
only.Expand description
Implementations§
Source§impl WSMethodInvocation
impl WSMethodInvocation
pub unsafe fn new( url: Option<&CFURL>, method_name: Option<&CFString>, protocol: Option<&CFString>, ) -> Option<CFRetained<WSMethodInvocation>>
👎Deprecated: No longer supported
pub unsafe fn from_serialization( contract: Option<&CFData>, ) -> Option<CFRetained<WSMethodInvocation>>
👎Deprecated: No longer supported
pub unsafe fn serialization( self: &WSMethodInvocation, ) -> Option<CFRetained<CFData>>
👎Deprecated: No longer supported
pub unsafe fn set_parameters( self: &WSMethodInvocation, parameters: Option<&CFDictionary>, parameter_order: Option<&CFArray>, )
👎Deprecated: No longer supported
pub unsafe fn parameters( self: &WSMethodInvocation, parameter_order: *mut *const CFArray, ) -> Option<CFRetained<CFDictionary>>
👎Deprecated: No longer supported
pub unsafe fn set_property( self: &WSMethodInvocation, property_name: Option<&CFString>, property_value: Option<&CFType>, )
👎Deprecated: No longer supported
pub unsafe fn property( self: &WSMethodInvocation, property_name: Option<&CFString>, ) -> Option<CFRetained<CFType>>
👎Deprecated: No longer supported
pub unsafe fn invoke( self: &WSMethodInvocation, ) -> Option<CFRetained<CFDictionary>>
👎Deprecated: No longer supported
Source§impl WSMethodInvocation
impl WSMethodInvocation
pub unsafe fn set_call_back( self: &WSMethodInvocation, client_cb: WSMethodInvocationCallBackProcPtr, context: *mut WSClientContext, )
👎Deprecated: No longer supported
Available on crate feature
WSTypes
only.pub unsafe fn schedule_with_run_loop( self: &WSMethodInvocation, run_loop: Option<&CFRunLoop>, run_loop_mode: Option<&CFString>, )
👎Deprecated: No longer supported
pub unsafe fn unschedule_from_run_loop( self: &WSMethodInvocation, run_loop: Option<&CFRunLoop>, run_loop_mode: Option<&CFString>, )
👎Deprecated: No longer supported
Source§impl WSMethodInvocation
impl WSMethodInvocation
pub unsafe fn add_serialization_override( self: &WSMethodInvocation, obj_type: CFTypeID, serialization_proc: WSMethodInvocationSerializationProcPtr, context: *mut WSClientContext, )
👎Deprecated: No longer supported
Available on crate feature
WSTypes
only.Source§impl WSMethodInvocation
impl WSMethodInvocation
pub unsafe fn add_deserialization_override( self: &WSMethodInvocation, type_namespace: Option<&CFString>, type_name: Option<&CFString>, deserialization_proc: WSMethodInvocationDeserializationProcPtr, context: *mut WSClientContext, )
👎Deprecated: No longer supported
Available on crate feature
WSTypes
only.Methods from Deref<Target = CFType>§
Sourcepub fn downcast_ref<T>(&self) -> Option<&T>where
T: ConcreteType,
Available on crate features SearchKit
and SKDocument
only.
pub fn downcast_ref<T>(&self) -> Option<&T>where
T: ConcreteType,
SearchKit
and SKDocument
only.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
Available on crate features SearchKit
and SKDocument
only.
pub fn retain_count(&self) -> usize
SearchKit
and SKDocument
only.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 CFNumber
s, small CFString
s 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 WSMethodInvocation
impl AsRef<AnyObject> for WSMethodInvocation
Source§impl AsRef<CFType> for WSMethodInvocation
impl AsRef<CFType> for WSMethodInvocation
Source§impl AsRef<WSMethodInvocation> for WSMethodInvocation
impl AsRef<WSMethodInvocation> for WSMethodInvocation
Source§impl Borrow<AnyObject> for WSMethodInvocation
impl Borrow<AnyObject> for WSMethodInvocation
Source§impl Borrow<CFType> for WSMethodInvocation
impl Borrow<CFType> for WSMethodInvocation
Source§impl ConcreteType for WSMethodInvocation
impl ConcreteType for WSMethodInvocation
Source§impl Debug for WSMethodInvocation
impl Debug for WSMethodInvocation
Source§impl Deref for WSMethodInvocation
impl Deref for WSMethodInvocation
Source§impl Hash for WSMethodInvocation
impl Hash for WSMethodInvocation
Source§impl Message for WSMethodInvocation
impl Message for WSMethodInvocation
Source§impl PartialEq for WSMethodInvocation
impl PartialEq for WSMethodInvocation
Source§impl RefEncode for WSMethodInvocation
impl RefEncode for WSMethodInvocation
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 WSMethodInvocation
impl Type for WSMethodInvocation
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 WSMethodInvocation
Auto Trait Implementations§
impl !Freeze for WSMethodInvocation
impl !RefUnwindSafe for WSMethodInvocation
impl !Send for WSMethodInvocation
impl !Sync for WSMethodInvocation
impl !Unpin for WSMethodInvocation
impl !UnwindSafe for WSMethodInvocation
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