pub struct Policy { /* private fields */ }Expand description
Wraps SecPolicyRef.
Implementations§
Source§impl Policy
impl Policy
Sourcepub fn basic_x509() -> Result<Self>
pub fn basic_x509() -> Result<Self>
Wraps the corresponding SecPolicyRef operation.
Sourcepub fn ssl(server: bool, hostname: Option<&str>) -> Result<Self>
pub fn ssl(server: bool, hostname: Option<&str>) -> Result<Self>
Wraps the corresponding SecPolicyRef operation.
Sourcepub fn revocation(flags: RevocationFlags) -> Result<Self>
pub fn revocation(flags: RevocationFlags) -> Result<Self>
Wraps the corresponding SecPolicyRef operation.
Sourcepub fn with_properties(
identifier: PolicyIdentifier,
properties: &PolicyProperties,
) -> Result<Self>
pub fn with_properties( identifier: PolicyIdentifier, properties: &PolicyProperties, ) -> Result<Self>
Wraps the corresponding SecPolicyRef operation.
Sourcepub fn properties(&self) -> Result<Value>
pub fn properties(&self) -> Result<Value>
Wraps the corresponding SecPolicyRef operation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl !Send for Policy
impl !Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
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