pub struct CFFileSecurity(/* private fields */);Expand description
Safe wrapper around a retained Core Foundation CFFileSecurity reference.
Implementations§
Source§impl CFFileSecurity
impl CFFileSecurity
Sourcepub fn from_raw(ptr: *mut c_void) -> Option<Self>
pub fn from_raw(ptr: *mut c_void) -> Option<Self>
Wraps a +1 retained CFFileSecurity pointer and returns None for null.
Sourcepub unsafe fn from_raw_retained(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw_retained(ptr: *mut c_void) -> Option<Self>
Retains a +0 borrowed CFFileSecurity pointer and wraps the resulting +1 reference.
§Safety
ptr must be NULL or a valid CFFileSecurity pointer.
Sourcepub fn into_cf_type(self) -> CFType
pub fn into_cf_type(self) -> CFType
Consumes this wrapper and returns the erased CFType.
Source§impl CFFileSecurity
impl CFFileSecurity
Sourcepub fn owner_uuid(&self) -> Option<CFUUID>
pub fn owner_uuid(&self) -> Option<CFUUID>
Owner UUID, if present.
Sourcepub fn set_owner_uuid(&self, uuid: &CFUUID) -> bool
pub fn set_owner_uuid(&self, uuid: &CFUUID) -> bool
Set the owner UUID.
Trait Implementations§
Source§impl AsCFType for CFFileSecurity
impl AsCFType for CFFileSecurity
Source§impl Clone for CFFileSecurity
impl Clone for CFFileSecurity
Source§fn clone(&self) -> CFFileSecurity
fn clone(&self) -> CFFileSecurity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CFFileSecurity
impl Debug for CFFileSecurity
Source§impl Default for CFFileSecurity
impl Default for CFFileSecurity
Source§impl Hash for CFFileSecurity
impl Hash for CFFileSecurity
Source§impl PartialEq for CFFileSecurity
impl PartialEq for CFFileSecurity
Source§fn eq(&self, other: &CFFileSecurity) -> bool
fn eq(&self, other: &CFFileSecurity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CFFileSecurity
impl StructuralPartialEq for CFFileSecurity
Auto Trait Implementations§
impl Freeze for CFFileSecurity
impl RefUnwindSafe for CFFileSecurity
impl !Send for CFFileSecurity
impl !Sync for CFFileSecurity
impl Unpin for CFFileSecurity
impl UnsafeUnpin for CFFileSecurity
impl UnwindSafe for CFFileSecurity
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