pub struct WSMethodInvocation { /* private fields */ }Available on crate feature
WSMethodInvocation only.Expand description
Implementations§
Source§impl WSMethodInvocation
impl WSMethodInvocation
Sourcepub unsafe fn new(
url: Option<&CFURL>,
method_name: Option<&CFString>,
protocol: Option<&CFString>,
) -> Option<CFRetained<WSMethodInvocation>>
👎Deprecated: No longer supportedAvailable on crate feature OSServices only.
pub unsafe fn new( url: Option<&CFURL>, method_name: Option<&CFString>, protocol: Option<&CFString>, ) -> Option<CFRetained<WSMethodInvocation>>
OSServices only.§Safety
urlmight not allowNone.method_namemight not allowNone.protocolmight not allowNone.
Sourcepub unsafe fn from_serialization(
contract: Option<&CFData>,
) -> Option<CFRetained<WSMethodInvocation>>
👎Deprecated: No longer supportedAvailable on crate feature OSServices only.
pub unsafe fn from_serialization( contract: Option<&CFData>, ) -> Option<CFRetained<WSMethodInvocation>>
OSServices only.§Safety
contract might not allow None.
pub unsafe fn serialization(&self) -> Option<CFRetained<CFData>>
👎Deprecated: No longer supported
Available on crate feature
OSServices only.Sourcepub unsafe fn set_parameters(
&self,
parameters: Option<&CFDictionary>,
parameter_order: Option<&CFArray>,
)
👎Deprecated: No longer supportedAvailable on crate feature OSServices only.
pub unsafe fn set_parameters( &self, parameters: Option<&CFDictionary>, parameter_order: Option<&CFArray>, )
OSServices only.§Safety
parametersgenerics must be of the correct type.parametersmight not allowNone.parameter_ordergeneric must be of the correct type.parameter_ordermight not allowNone.
Sourcepub unsafe fn parameters(
&self,
parameter_order: *mut *const CFArray,
) -> Option<CFRetained<CFDictionary>>
👎Deprecated: No longer supportedAvailable on crate feature OSServices only.
pub unsafe fn parameters( &self, parameter_order: *mut *const CFArray, ) -> Option<CFRetained<CFDictionary>>
OSServices only.§Safety
parameter_order must be a valid pointer.
Sourcepub unsafe fn set_property(
&self,
property_name: Option<&CFString>,
property_value: Option<&CFType>,
)
👎Deprecated: No longer supportedAvailable on crate feature OSServices only.
pub unsafe fn set_property( &self, property_name: Option<&CFString>, property_value: Option<&CFType>, )
OSServices only.§Safety
property_namemight not allowNone.property_valueshould be of the correct type.property_valuemight not allowNone.
Sourcepub unsafe fn property(
&self,
property_name: Option<&CFString>,
) -> Option<CFRetained<CFType>>
👎Deprecated: No longer supportedAvailable on crate feature OSServices only.
pub unsafe fn property( &self, property_name: Option<&CFString>, ) -> Option<CFRetained<CFType>>
OSServices only.§Safety
property_name might not allow None.
pub unsafe fn invoke(&self) -> Option<CFRetained<CFDictionary>>
👎Deprecated: No longer supported
Available on crate feature
OSServices only.Source§impl WSMethodInvocation
impl WSMethodInvocation
Sourcepub unsafe fn set_call_back(
&self,
client_cb: WSMethodInvocationCallBackProcPtr,
context: *mut WSClientContext,
)
👎Deprecated: No longer supportedAvailable on crate features OSServices and WSTypes only.
pub unsafe fn set_call_back( &self, client_cb: WSMethodInvocationCallBackProcPtr, context: *mut WSClientContext, )
OSServices and WSTypes only.§Safety
client_cbmust be implemented correctly.contextmust be a valid pointer.
Sourcepub unsafe fn schedule_with_run_loop(
&self,
run_loop: Option<&CFRunLoop>,
run_loop_mode: Option<&CFString>,
)
👎Deprecated: No longer supportedAvailable on crate feature OSServices only.
pub unsafe fn schedule_with_run_loop( &self, run_loop: Option<&CFRunLoop>, run_loop_mode: Option<&CFString>, )
OSServices only.§Safety
run_looppossibly has additional threading requirements.run_loopmight not allowNone.run_loop_modemight not allowNone.
Sourcepub unsafe fn unschedule_from_run_loop(
&self,
run_loop: Option<&CFRunLoop>,
run_loop_mode: Option<&CFString>,
)
👎Deprecated: No longer supportedAvailable on crate feature OSServices only.
pub unsafe fn unschedule_from_run_loop( &self, run_loop: Option<&CFRunLoop>, run_loop_mode: Option<&CFString>, )
OSServices only.§Safety
run_looppossibly has additional threading requirements.run_loopmight not allowNone.run_loop_modemight not allowNone.
Source§impl WSMethodInvocation
impl WSMethodInvocation
Sourcepub unsafe fn add_serialization_override(
&self,
obj_type: CFTypeID,
serialization_proc: WSMethodInvocationSerializationProcPtr,
context: *mut WSClientContext,
)
👎Deprecated: No longer supportedAvailable on crate features OSServices and WSTypes only.
pub unsafe fn add_serialization_override( &self, obj_type: CFTypeID, serialization_proc: WSMethodInvocationSerializationProcPtr, context: *mut WSClientContext, )
OSServices and WSTypes only.§Safety
serialization_procmust be implemented correctly.contextmust be a valid pointer.
Source§impl WSMethodInvocation
impl WSMethodInvocation
Sourcepub unsafe fn add_deserialization_override(
&self,
type_namespace: Option<&CFString>,
type_name: Option<&CFString>,
deserialization_proc: WSMethodInvocationDeserializationProcPtr,
context: *mut WSClientContext,
)
👎Deprecated: No longer supportedAvailable on crate features OSServices and WSTypes only.
pub unsafe fn add_deserialization_override( &self, type_namespace: Option<&CFString>, type_name: Option<&CFString>, deserialization_proc: WSMethodInvocationDeserializationProcPtr, context: *mut WSClientContext, )
OSServices and WSTypes only.§Safety
type_namespacemight not allowNone.type_namemight not allowNone.deserialization_procmust be implemented correctly.contextmust be a valid pointer.
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 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 WSMethodInvocation
Available on crate feature OSServices only.
impl AsRef<AnyObject> for WSMethodInvocation
Available on crate feature
OSServices only.Source§impl AsRef<CFType> for WSMethodInvocation
Available on crate feature OSServices only.
impl AsRef<CFType> for WSMethodInvocation
Available on crate feature
OSServices only.Source§impl AsRef<WSMethodInvocation> for WSMethodInvocation
Available on crate feature OSServices only.
impl AsRef<WSMethodInvocation> for WSMethodInvocation
Available on crate feature
OSServices only.Source§impl Borrow<AnyObject> for WSMethodInvocation
Available on crate feature OSServices only.
impl Borrow<AnyObject> for WSMethodInvocation
Available on crate feature
OSServices only.Source§impl Borrow<CFType> for WSMethodInvocation
Available on crate feature OSServices only.
impl Borrow<CFType> for WSMethodInvocation
Available on crate feature
OSServices only.Source§impl ConcreteType for WSMethodInvocation
Available on crate feature OSServices only.
impl ConcreteType for WSMethodInvocation
Available on crate feature
OSServices only.Source§impl Debug for WSMethodInvocation
Available on crate feature OSServices only.
impl Debug for WSMethodInvocation
Available on crate feature
OSServices only.Source§impl Deref for WSMethodInvocation
Available on crate feature OSServices only.
impl Deref for WSMethodInvocation
Available on crate feature
OSServices only.Source§impl Hash for WSMethodInvocation
Available on crate feature OSServices only.
impl Hash for WSMethodInvocation
Available on crate feature
OSServices only.Source§impl Message for WSMethodInvocation
Available on crate feature OSServices only.
impl Message for WSMethodInvocation
Available on crate feature
OSServices only.Source§impl PartialEq for WSMethodInvocation
Available on crate feature OSServices only.
impl PartialEq for WSMethodInvocation
Available on crate feature
OSServices only.Source§impl RefEncode for WSMethodInvocation
Available on crate feature OSServices only.
impl RefEncode for WSMethodInvocation
Available on crate feature
OSServices only.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
Available on crate feature OSServices only.
impl Type for WSMethodInvocation
Available on crate feature
OSServices only.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
Available on crate feature
OSServices only.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