pub struct CFFileSecurity(/* private fields */);Expand description
Safe wrapper around a retained Core Foundation CFFileSecurity reference.
Implementations§
Source§impl CFFileSecurity
impl CFFileSecurity
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Adopts a +1 retained CFFileSecurity pointer and returns None for null.
§Safety
A non-null ptr must be a live CFFileSecurity pointer of the exact dynamic type carrying one retain transferred to this wrapper. The caller must not release or separately adopt that transferred retain.
Sourcepub unsafe fn from_raw_borrowed(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw_borrowed(ptr: *mut c_void) -> Option<Self>
Retains a +0 borrowed CFFileSecurity pointer and returns an owned wrapper.
§Safety
A non-null ptr must be a live CFFileSecurity pointer of the exact dynamic type for the duration of the retain call.
Sourcepub const fn as_ptr(&self) -> *mut c_void
pub const fn as_ptr(&self) -> *mut c_void
Borrows the raw +0 Core Foundation pointer while self remains alive.
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
impl Eq for CFFileSecurity
Source§impl Hash for CFFileSecurity
impl Hash for CFFileSecurity
Source§impl PartialEq for CFFileSecurity
impl PartialEq for CFFileSecurity
impl StructuralPartialEq for CFFileSecurity
Auto Trait Implementations§
impl !Send for CFFileSecurity
impl !Sync for CFFileSecurity
impl Freeze for CFFileSecurity
impl RefUnwindSafe 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