#[repr(C)]pub struct CFWriteStream { /* private fields */ }
Available on crate feature
CFStream
only.Expand description
Implementations§
Source§impl CFWriteStream
impl CFWriteStream
pub unsafe fn with_buffer( alloc: Option<&CFAllocator>, buffer: *mut u8, buffer_capacity: CFIndex, ) -> Option<CFRetained<CFWriteStream>>
pub fn with_allocated_buffers( alloc: Option<&CFAllocator>, buffer_allocator: Option<&CFAllocator>, ) -> Option<CFRetained<CFWriteStream>>
Source§impl CFWriteStream
impl CFWriteStream
pub fn with_file( alloc: Option<&CFAllocator>, file_url: Option<&CFURL>, ) -> Option<CFRetained<CFWriteStream>>
Available on crate feature
CFURL
only.Source§impl CFWriteStream
impl CFWriteStream
pub fn status(self: &CFWriteStream) -> CFStreamStatus
Source§impl CFWriteStream
impl CFWriteStream
pub fn copy_error(self: &CFWriteStream) -> Option<CFRetained<CFError>>
Available on crate feature
CFError
only.Source§impl CFWriteStream
impl CFWriteStream
pub fn open(self: &CFWriteStream) -> bool
Source§impl CFWriteStream
impl CFWriteStream
pub fn close(self: &CFWriteStream)
Source§impl CFWriteStream
impl CFWriteStream
pub fn can_accept_bytes(self: &CFWriteStream) -> bool
pub unsafe fn write( self: &CFWriteStream, buffer: *const u8, buffer_length: CFIndex, ) -> CFIndex
Source§impl CFWriteStream
impl CFWriteStream
pub fn property( self: &CFWriteStream, property_name: Option<&CFStreamPropertyKey>, ) -> Option<CFRetained<CFType>>
Source§impl CFWriteStream
impl CFWriteStream
pub unsafe fn set_property( self: &CFWriteStream, property_name: Option<&CFStreamPropertyKey>, property_value: Option<&CFType>, ) -> bool
Source§impl CFWriteStream
impl CFWriteStream
pub unsafe fn set_client( self: &CFWriteStream, stream_events: CFOptionFlags, client_cb: CFWriteStreamClientCallBack, client_context: *mut CFStreamClientContext, ) -> bool
Source§impl CFWriteStream
impl CFWriteStream
pub fn schedule_with_run_loop( self: &CFWriteStream, run_loop: Option<&CFRunLoop>, run_loop_mode: Option<&CFRunLoopMode>, )
Available on crate feature
CFRunLoop
only.Source§impl CFWriteStream
impl CFWriteStream
pub fn unschedule_from_run_loop( self: &CFWriteStream, run_loop: Option<&CFRunLoop>, run_loop_mode: Option<&CFRunLoopMode>, )
Available on crate feature
CFRunLoop
only.Source§impl CFWriteStream
impl CFWriteStream
pub unsafe fn set_dispatch_queue( self: &CFWriteStream, q: Option<&DispatchQueue>, )
Available on crate feature
dispatch2
only.Source§impl CFWriteStream
impl CFWriteStream
pub unsafe fn dispatch_queue( self: &CFWriteStream, ) -> Option<DispatchRetained<DispatchQueue>>
Available on crate feature
dispatch2
only.Source§impl CFWriteStream
impl CFWriteStream
pub fn error(self: &CFWriteStream) -> CFStreamError
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 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 CFWriteStream
impl AsRef<AnyObject> for CFWriteStream
Source§impl AsRef<CFType> for CFWriteStream
impl AsRef<CFType> for CFWriteStream
Source§impl AsRef<CFWriteStream> for CFWriteStream
impl AsRef<CFWriteStream> for CFWriteStream
Source§impl Borrow<AnyObject> for CFWriteStream
impl Borrow<AnyObject> for CFWriteStream
Source§impl Borrow<CFType> for CFWriteStream
impl Borrow<CFType> for CFWriteStream
Source§impl ConcreteType for CFWriteStream
impl ConcreteType for CFWriteStream
Source§impl Debug for CFWriteStream
impl Debug for CFWriteStream
Source§impl Deref for CFWriteStream
impl Deref for CFWriteStream
Source§impl Hash for CFWriteStream
impl Hash for CFWriteStream
Source§impl Message for CFWriteStream
impl Message for CFWriteStream
Source§impl PartialEq for CFWriteStream
impl PartialEq for CFWriteStream
Source§impl RefEncode for CFWriteStream
impl RefEncode for CFWriteStream
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 CFWriteStream
impl Type for CFWriteStream
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 CFWriteStream
Auto Trait Implementations§
impl !Freeze for CFWriteStream
impl !RefUnwindSafe for CFWriteStream
impl !Send for CFWriteStream
impl !Sync for CFWriteStream
impl !Unpin for CFWriteStream
impl !UnwindSafe for CFWriteStream
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