pub struct SecureRoot { /* private fields */ }Implementations§
Source§impl SecureRoot
impl SecureRoot
pub fn new(root: impl AsRef<Path>, policy: StaticPolicy) -> Result<Self, Error>
pub fn policy(&self) -> &StaticPolicy
pub fn root_path(&self) -> &Path
pub fn resolve(&self, path: &ConfinedPath) -> ResolvedResource
pub fn resolve_uri(&self, uri: &str) -> Result<ResolvedResource, PathRejection>
Trait Implementations§
Source§impl Clone for SecureRoot
impl Clone for SecureRoot
Source§fn clone(&self) -> SecureRoot
fn clone(&self) -> SecureRoot
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 SecureRoot
impl RefUnwindSafe for SecureRoot
impl Send for SecureRoot
impl Sync for SecureRoot
impl Unpin for SecureRoot
impl UnsafeUnpin for SecureRoot
impl UnwindSafe for SecureRoot
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