#[repr(C)]pub struct AuthorizationExternalForm {
pub bytes: [c_char; 32],
}
Available on crate feature
Authorization
only.Expand description
An AuthorizationExternalForm structure can hold the externalized form of an AuthorizationRef. As such, it can be transmitted across IPC channels to other processes, which can re-internalize it to recover a valid AuthorizationRef handle. The data contained in an AuthorizationExternalForm should be considered opaque.
SECURITY NOTE: Applications should take care to not disclose the AuthorizationExternalForm to potential attackers since it would authorize rights to them.
See also Apple’s documentation
Fields§
§bytes: [c_char; 32]
Trait Implementations§
Source§impl Clone for AuthorizationExternalForm
impl Clone for AuthorizationExternalForm
Source§fn clone(&self) -> AuthorizationExternalForm
fn clone(&self) -> AuthorizationExternalForm
Returns a duplicate of the value. Read more
1.0.0 · 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 AuthorizationExternalForm
impl Debug for AuthorizationExternalForm
Source§impl Encode for AuthorizationExternalForm
Available on crate feature objc2
only.
impl Encode for AuthorizationExternalForm
Available on crate feature
objc2
only.Source§impl RefEncode for AuthorizationExternalForm
Available on crate feature objc2
only.
impl RefEncode for AuthorizationExternalForm
Available on crate feature
objc2
only.Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for AuthorizationExternalForm
impl StructuralPartialEq for AuthorizationExternalForm
Auto Trait Implementations§
impl Freeze for AuthorizationExternalForm
impl RefUnwindSafe for AuthorizationExternalForm
impl Send for AuthorizationExternalForm
impl Sync for AuthorizationExternalForm
impl Unpin for AuthorizationExternalForm
impl UnwindSafe for AuthorizationExternalForm
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.