pub struct FilePolicyGate { /* private fields */ }Implementations§
Source§impl FilePolicyGate
impl FilePolicyGate
pub fn from_file(path: &Path) -> Result<Self>
pub fn from_policy_file(file: PolicyFile, source: impl Into<String>) -> Self
pub fn source(&self) -> &str
pub fn rule_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FilePolicyGate
impl RefUnwindSafe for FilePolicyGate
impl Send for FilePolicyGate
impl Sync for FilePolicyGate
impl Unpin for FilePolicyGate
impl UnsafeUnpin for FilePolicyGate
impl UnwindSafe for FilePolicyGate
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