#[repr(C)]pub struct WSProtocolHandler { /* private fields */ }
Available on crate features
WSProtocolHandler
and OSServices
only.Expand description
Implementations§
Source§impl WSProtocolHandler
impl WSProtocolHandler
pub unsafe fn new( allocator: Option<&CFAllocator>, protocol: Option<&CFString>, ) -> Option<CFRetained<WSProtocolHandler>>
👎Deprecated: No longer supported
pub unsafe fn request_dictionary( self: &WSProtocolHandler, data: Option<&CFData>, ) -> Option<CFRetained<CFDictionary>>
👎Deprecated: No longer supported
pub unsafe fn reply_dictionary( self: &WSProtocolHandler, method_name: Option<&CFString>, data: Option<&CFData>, ) -> Option<CFRetained<CFDictionary>>
👎Deprecated: No longer supported
pub unsafe fn reply_document( self: &WSProtocolHandler, method_context: Option<&CFDictionary>, result_value: Option<&CFType>, ) -> Option<CFRetained<CFData>>
👎Deprecated: No longer supported
pub unsafe fn fault_document( self: &WSProtocolHandler, method_context: Option<&CFDictionary>, fault_dict: Option<&CFDictionary>, ) -> Option<CFRetained<CFData>>
👎Deprecated: No longer supported
pub unsafe fn request_document( self: &WSProtocolHandler, method_name: Option<&CFString>, method_params: Option<&CFDictionary>, method_param_order: Option<&CFArray>, method_extras: Option<&CFDictionary>, ) -> Option<CFRetained<CFData>>
👎Deprecated: No longer supported
pub unsafe fn property( self: &WSProtocolHandler, property_name: Option<&CFString>, ) -> Option<CFRetained<CFType>>
👎Deprecated: No longer supported
pub unsafe fn set_property( self: &WSProtocolHandler, property_name: Option<&CFString>, property_value: Option<&CFType>, )
👎Deprecated: No longer supported
Source§impl WSProtocolHandler
impl WSProtocolHandler
pub unsafe fn set_serialization_override( self: &WSProtocolHandler, obj_type: CFTypeID, serialization_proc: WSProtocolHandlerSerializationProcPtr, context: *mut WSClientContext, )
👎Deprecated: No longer supported
Available on crate feature
WSTypes
only.Source§impl WSProtocolHandler
impl WSProtocolHandler
pub unsafe fn set_deserialization_override( self: &WSProtocolHandler, type_namespace: Option<&CFString>, type_name: Option<&CFString>, deserialization_proc: WSProtocolHandlerDeserializationProcPtr, 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 WSProtocolHandler
impl AsRef<AnyObject> for WSProtocolHandler
Source§impl AsRef<CFType> for WSProtocolHandler
impl AsRef<CFType> for WSProtocolHandler
Source§impl AsRef<WSProtocolHandler> for WSProtocolHandler
impl AsRef<WSProtocolHandler> for WSProtocolHandler
Source§impl Borrow<AnyObject> for WSProtocolHandler
impl Borrow<AnyObject> for WSProtocolHandler
Source§impl Borrow<CFType> for WSProtocolHandler
impl Borrow<CFType> for WSProtocolHandler
Source§impl ConcreteType for WSProtocolHandler
impl ConcreteType for WSProtocolHandler
Source§impl Debug for WSProtocolHandler
impl Debug for WSProtocolHandler
Source§impl Deref for WSProtocolHandler
impl Deref for WSProtocolHandler
Source§impl Hash for WSProtocolHandler
impl Hash for WSProtocolHandler
Source§impl Message for WSProtocolHandler
impl Message for WSProtocolHandler
Source§impl PartialEq for WSProtocolHandler
impl PartialEq for WSProtocolHandler
Source§impl RefEncode for WSProtocolHandler
impl RefEncode for WSProtocolHandler
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
impl Type for WSProtocolHandler
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
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