pub struct GuardedSource {
pub source_id: SourceId,
pub canonical_root: PathBuf,
pub policy: CompiledPolicy,
}Expand description
One active source root with its compiled policy.
Fields§
§source_id: SourceId§canonical_root: PathBuf§policy: CompiledPolicyImplementations§
Source§impl GuardedSource
impl GuardedSource
pub fn from_record(record: &SourceRecord) -> Self
Trait Implementations§
Source§impl Clone for GuardedSource
impl Clone for GuardedSource
Source§fn clone(&self) -> GuardedSource
fn clone(&self) -> GuardedSource
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 moreAuto Trait Implementations§
impl Freeze for GuardedSource
impl RefUnwindSafe for GuardedSource
impl Send for GuardedSource
impl Sync for GuardedSource
impl Unpin for GuardedSource
impl UnsafeUnpin for GuardedSource
impl UnwindSafe for GuardedSource
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