pub struct ExtensionPointPolicy { /* private fields */ }Implementations§
Source§impl ExtensionPointPolicy
impl ExtensionPointPolicy
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new ExtensionPointPolicy with default settings.
The default policy has all flags set to false.
Sourcepub fn build(self) -> Result<(), Error>
pub fn build(self) -> Result<(), Error>
Builds the policy and applies it to the current process.
§Errors
Returns an error if the policy could not be set.
Sourcepub fn set_disable_extension_points(&mut self, status: bool) -> &mut Self
pub fn set_disable_extension_points(&mut self, status: bool) -> &mut Self
Corresponds to the DisableExtensionPoints flag.
Sourcepub unsafe fn custom_set(&mut self, flag: u32, status: bool) -> &mut Self
pub unsafe fn custom_set(&mut self, flag: u32, status: bool) -> &mut Self
Sets a custom flag in the policy.
§Safety
This function is unsafe because it allows arbitrary modification of the policy flags.
Trait Implementations§
Source§impl Clone for ExtensionPointPolicy
impl Clone for ExtensionPointPolicy
Source§fn clone(&self) -> ExtensionPointPolicy
fn clone(&self) -> ExtensionPointPolicy
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 moreimpl Copy for ExtensionPointPolicy
Auto Trait Implementations§
impl Freeze for ExtensionPointPolicy
impl RefUnwindSafe for ExtensionPointPolicy
impl Send for ExtensionPointPolicy
impl Sync for ExtensionPointPolicy
impl Unpin for ExtensionPointPolicy
impl UnsafeUnpin for ExtensionPointPolicy
impl UnwindSafe for ExtensionPointPolicy
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