#[repr(C)]pub struct CFFileSecurity { /* private fields */ }
Available on crate feature
CFFileSecurity
only.Expand description
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>>
pub unsafe fn owner_uuid( self: &CFFileSecurity, owner_uuid: *mut *const CFUUID, ) -> bool
Available on crate feature
CFUUID
only.pub fn set_owner_uuid( self: &CFFileSecurity, owner_uuid: Option<&CFUUID>, ) -> bool
Available on crate feature
CFUUID
only.pub unsafe fn group_uuid( self: &CFFileSecurity, group_uuid: *mut *const CFUUID, ) -> bool
Available on crate feature
CFUUID
only.pub fn set_group_uuid( self: &CFFileSecurity, group_uuid: Option<&CFUUID>, ) -> bool
Available on crate feature
CFUUID
only.pub unsafe fn owner(self: &CFFileSecurity, owner: *mut uid_t) -> bool
Available on crate feature
libc
only.pub fn set_owner(self: &CFFileSecurity, owner: uid_t) -> bool
Available on crate feature
libc
only.pub unsafe fn group(self: &CFFileSecurity, group: *mut gid_t) -> bool
Available on crate feature
libc
only.pub fn set_group(self: &CFFileSecurity, group: gid_t) -> bool
Available on crate feature
libc
only.pub unsafe fn mode(self: &CFFileSecurity, mode: *mut mode_t) -> bool
Available on crate feature
libc
only.pub fn set_mode(self: &CFFileSecurity, mode: mode_t) -> bool
Available on crate feature
libc
only.Source§impl CFFileSecurity
impl CFFileSecurity
pub fn clear_properties( self: &CFFileSecurity, 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 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 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
The Objective-C type-encoding for a reference of this type. Read more
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,
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 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 !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