pub struct CFFileSecurity { /* private fields */ }CFFileSecurity only.Expand description
This is toll-free bridged with NSFileSecurity.
Implementations§
Source§impl CFFileSecurity
impl CFFileSecurity
pub fn new( allocator: Option<&CFAllocator>, ) -> Option<CFRetained<CFFileSecurity>>
pub fn new_copy( allocator: Option<&CFAllocator>, file_sec: Option<&CFFileSecurity>, ) -> Option<CFRetained<CFFileSecurity>>
Sourcepub unsafe fn owner_uuid(&self, owner_uuid: *mut *const CFUUID) -> bool
Available on crate feature CFUUID only.
pub unsafe fn owner_uuid(&self, owner_uuid: *mut *const CFUUID) -> bool
CFUUID only.§Safety
owner_uuid must be a valid pointer.
pub fn set_owner_uuid(&self, owner_uuid: Option<&CFUUID>) -> bool
CFUUID only.Sourcepub unsafe fn group_uuid(&self, group_uuid: *mut *const CFUUID) -> bool
Available on crate feature CFUUID only.
pub unsafe fn group_uuid(&self, group_uuid: *mut *const CFUUID) -> bool
CFUUID only.§Safety
group_uuid must be a valid pointer.
pub fn set_group_uuid(&self, group_uuid: Option<&CFUUID>) -> bool
CFUUID only.Sourcepub unsafe fn owner(&self, owner: *mut uid_t) -> bool
Available on crate feature libc only.
pub unsafe fn owner(&self, owner: *mut uid_t) -> bool
libc only.§Safety
owner must be a valid pointer.
pub fn set_owner(&self, owner: uid_t) -> bool
libc only.Sourcepub unsafe fn group(&self, group: *mut gid_t) -> bool
Available on crate feature libc only.
pub unsafe fn group(&self, group: *mut gid_t) -> bool
libc only.§Safety
group must be a valid pointer.
pub fn set_group(&self, group: gid_t) -> bool
libc only.Sourcepub unsafe fn mode(&self, mode: *mut mode_t) -> bool
Available on crate feature libc only.
pub unsafe fn mode(&self, mode: *mut mode_t) -> bool
libc only.§Safety
mode must be a valid pointer.
pub fn set_mode(&self, mode: mode_t) -> bool
libc only.Source§impl CFFileSecurity
impl CFFileSecurity
pub fn clear_properties( &self, clear_property_mask: CFFileSecurityClearOptions, ) -> bool
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 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 CFFileSecurity
impl AsRef<AnyObject> for CFFileSecurity
Source§impl AsRef<CFFileSecurity> for CFFileSecurity
impl AsRef<CFFileSecurity> for CFFileSecurity
Source§impl AsRef<CFType> for CFFileSecurity
impl AsRef<CFType> for CFFileSecurity
Source§impl Borrow<AnyObject> for CFFileSecurity
impl Borrow<AnyObject> for CFFileSecurity
Source§impl Borrow<CFType> for CFFileSecurity
impl Borrow<CFType> for CFFileSecurity
Source§impl ConcreteType for CFFileSecurity
impl ConcreteType for CFFileSecurity
Source§impl Debug for CFFileSecurity
impl Debug for CFFileSecurity
Source§impl Deref for CFFileSecurity
impl Deref for CFFileSecurity
Source§impl Hash for CFFileSecurity
impl Hash for CFFileSecurity
Source§impl Message for CFFileSecurity
impl Message for CFFileSecurity
Source§impl PartialEq for CFFileSecurity
impl PartialEq for CFFileSecurity
Source§impl RefEncode for CFFileSecurity
impl RefEncode for CFFileSecurity
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
Source§impl Type for CFFileSecurity
impl Type for CFFileSecurity
Source§fn retain(&self) -> CFRetained<Self> ⓘwhere
Self: Sized,
fn retain(&self) -> CFRetained<Self> ⓘwhere
Self: Sized,
Source§fn as_concrete_TypeRef(&self) -> &Self
fn as_concrete_TypeRef(&self) -> &Self
this is redundant
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,
use CFRetained::retain
core-foundation crate. Read moreSource§fn as_CFTypeRef(&self) -> &CFType
fn as_CFTypeRef(&self) -> &CFType
this is redundant (CF types deref to CFType)
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,
use CFRetained::from_raw
core-foundation crate. Read more