pub struct WSProtocolHandler { /* private fields */ }Available on crate feature
WSProtocolHandler only.Expand description
Implementations§
Source§impl WSProtocolHandler
impl WSProtocolHandler
Sourcepub unsafe fn new(
allocator: Option<&CFAllocator>,
protocol: Option<&CFString>,
) -> Option<CFRetained<WSProtocolHandler>>
👎Deprecated: No longer supportedAvailable on crate feature OSServices only.
pub unsafe fn new( allocator: Option<&CFAllocator>, protocol: Option<&CFString>, ) -> Option<CFRetained<WSProtocolHandler>>
OSServices only.§Safety
allocatormight not allowNone.protocolmight not allowNone.
Sourcepub unsafe fn request_dictionary(
&self,
data: Option<&CFData>,
) -> Option<CFRetained<CFDictionary>>
👎Deprecated: No longer supportedAvailable on crate feature OSServices only.
pub unsafe fn request_dictionary( &self, data: Option<&CFData>, ) -> Option<CFRetained<CFDictionary>>
OSServices only.§Safety
data might not allow None.
Sourcepub unsafe fn reply_dictionary(
&self,
method_name: Option<&CFString>,
data: Option<&CFData>,
) -> Option<CFRetained<CFDictionary>>
👎Deprecated: No longer supportedAvailable on crate feature OSServices only.
pub unsafe fn reply_dictionary( &self, method_name: Option<&CFString>, data: Option<&CFData>, ) -> Option<CFRetained<CFDictionary>>
OSServices only.§Safety
method_namemight not allowNone.datamight not allowNone.
Sourcepub unsafe fn reply_document(
&self,
method_context: Option<&CFDictionary>,
result_value: Option<&CFType>,
) -> Option<CFRetained<CFData>>
👎Deprecated: No longer supportedAvailable on crate feature OSServices only.
pub unsafe fn reply_document( &self, method_context: Option<&CFDictionary>, result_value: Option<&CFType>, ) -> Option<CFRetained<CFData>>
OSServices only.§Safety
method_contextgenerics must be of the correct type.method_contextmight not allowNone.result_valueshould be of the correct type.result_valuemight not allowNone.
Sourcepub unsafe fn fault_document(
&self,
method_context: Option<&CFDictionary>,
fault_dict: Option<&CFDictionary>,
) -> Option<CFRetained<CFData>>
👎Deprecated: No longer supportedAvailable on crate feature OSServices only.
pub unsafe fn fault_document( &self, method_context: Option<&CFDictionary>, fault_dict: Option<&CFDictionary>, ) -> Option<CFRetained<CFData>>
OSServices only.§Safety
method_contextgenerics must be of the correct type.method_contextmight not allowNone.fault_dictgenerics must be of the correct type.fault_dictmight not allowNone.
Sourcepub unsafe fn request_document(
&self,
method_name: Option<&CFString>,
method_params: Option<&CFDictionary>,
method_param_order: Option<&CFArray>,
method_extras: Option<&CFDictionary>,
) -> Option<CFRetained<CFData>>
👎Deprecated: No longer supportedAvailable on crate feature OSServices only.
pub unsafe fn request_document( &self, method_name: Option<&CFString>, method_params: Option<&CFDictionary>, method_param_order: Option<&CFArray>, method_extras: Option<&CFDictionary>, ) -> Option<CFRetained<CFData>>
OSServices only.§Safety
method_namemight not allowNone.method_paramsgenerics must be of the correct type.method_paramsmight not allowNone.method_param_ordergeneric must be of the correct type.method_param_ordermight not allowNone.method_extrasgenerics must be of the correct type.method_extrasmight 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.
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.
Source§impl WSProtocolHandler
impl WSProtocolHandler
Sourcepub unsafe fn set_serialization_override(
&self,
obj_type: CFTypeID,
serialization_proc: WSProtocolHandlerSerializationProcPtr,
context: *mut WSClientContext,
)
👎Deprecated: No longer supportedAvailable on crate features OSServices and WSTypes only.
pub unsafe fn set_serialization_override( &self, obj_type: CFTypeID, serialization_proc: WSProtocolHandlerSerializationProcPtr, context: *mut WSClientContext, )
OSServices and WSTypes only.§Safety
serialization_procmust be implemented correctly.contextmust be a valid pointer.
Source§impl WSProtocolHandler
impl WSProtocolHandler
Sourcepub unsafe fn set_deserialization_override(
&self,
type_namespace: Option<&CFString>,
type_name: Option<&CFString>,
deserialization_proc: WSProtocolHandlerDeserializationProcPtr,
context: *mut WSClientContext,
)
👎Deprecated: No longer supportedAvailable on crate features OSServices and WSTypes only.
pub unsafe fn set_deserialization_override( &self, type_namespace: Option<&CFString>, type_name: Option<&CFString>, deserialization_proc: WSProtocolHandlerDeserializationProcPtr, 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 WSProtocolHandler
Available on crate feature OSServices only.
impl AsRef<AnyObject> for WSProtocolHandler
Available on crate feature
OSServices only.Source§impl AsRef<CFType> for WSProtocolHandler
Available on crate feature OSServices only.
impl AsRef<CFType> for WSProtocolHandler
Available on crate feature
OSServices only.Source§impl AsRef<WSProtocolHandler> for WSProtocolHandler
Available on crate feature OSServices only.
impl AsRef<WSProtocolHandler> for WSProtocolHandler
Available on crate feature
OSServices only.Source§impl Borrow<AnyObject> for WSProtocolHandler
Available on crate feature OSServices only.
impl Borrow<AnyObject> for WSProtocolHandler
Available on crate feature
OSServices only.Source§impl Borrow<CFType> for WSProtocolHandler
Available on crate feature OSServices only.
impl Borrow<CFType> for WSProtocolHandler
Available on crate feature
OSServices only.Source§impl ConcreteType for WSProtocolHandler
Available on crate feature OSServices only.
impl ConcreteType for WSProtocolHandler
Available on crate feature
OSServices only.Source§impl Debug for WSProtocolHandler
Available on crate feature OSServices only.
impl Debug for WSProtocolHandler
Available on crate feature
OSServices only.Source§impl Deref for WSProtocolHandler
Available on crate feature OSServices only.
impl Deref for WSProtocolHandler
Available on crate feature
OSServices only.Source§impl Hash for WSProtocolHandler
Available on crate feature OSServices only.
impl Hash for WSProtocolHandler
Available on crate feature
OSServices only.Source§impl Message for WSProtocolHandler
Available on crate feature OSServices only.
impl Message for WSProtocolHandler
Available on crate feature
OSServices only.Source§impl PartialEq for WSProtocolHandler
Available on crate feature OSServices only.
impl PartialEq for WSProtocolHandler
Available on crate feature
OSServices only.Source§impl RefEncode for WSProtocolHandler
Available on crate feature OSServices only.
impl RefEncode for WSProtocolHandler
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 WSProtocolHandler
Available on crate feature OSServices only.
impl Type for WSProtocolHandler
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 WSProtocolHandler
Available on crate feature
OSServices only.Auto Trait Implementations§
impl !Freeze for WSProtocolHandler
impl !RefUnwindSafe for WSProtocolHandler
impl !Send for WSProtocolHandler
impl !Sync for WSProtocolHandler
impl !Unpin for WSProtocolHandler
impl !UnwindSafe for WSProtocolHandler
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