pub struct FsRead;Expand description
Permission to read files, list directories, and check metadata.
Trait Implementations§
Source§impl CapProvider<FsRead> for Cap<(Ambient, FsRead)>
impl CapProvider<FsRead> for Cap<(Ambient, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for Cap<(EnvRead, FsRead)>
impl CapProvider<FsRead> for Cap<(EnvRead, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for Cap<(EnvWrite, FsRead)>
impl CapProvider<FsRead> for Cap<(EnvWrite, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for Cap<(FsAll, FsRead)>
impl CapProvider<FsRead> for Cap<(FsAll, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for Cap<(FsRead, Ambient)>
impl CapProvider<FsRead> for Cap<(FsRead, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for Cap<(FsRead, EnvRead)>
impl CapProvider<FsRead> for Cap<(FsRead, EnvRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for Cap<(FsRead, EnvWrite)>
impl CapProvider<FsRead> for Cap<(FsRead, EnvWrite)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for Cap<(FsRead, FsAll)>
impl CapProvider<FsRead> for Cap<(FsRead, FsAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for Cap<(FsRead, FsRead)>
impl CapProvider<FsRead> for Cap<(FsRead, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for Cap<(FsRead, FsWrite)>
impl CapProvider<FsRead> for Cap<(FsRead, FsWrite)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for Cap<(FsRead, NetAll)>
impl CapProvider<FsRead> for Cap<(FsRead, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for Cap<(FsRead, NetBind)>
impl CapProvider<FsRead> for Cap<(FsRead, NetBind)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for Cap<(FsRead, NetConnect)>
impl CapProvider<FsRead> for Cap<(FsRead, NetConnect)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for Cap<(FsRead, Spawn)>
impl CapProvider<FsRead> for Cap<(FsRead, Spawn)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for Cap<(FsWrite, FsRead)>
impl CapProvider<FsRead> for Cap<(FsWrite, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for Cap<(NetAll, FsRead)>
impl CapProvider<FsRead> for Cap<(NetAll, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for Cap<(NetBind, FsRead)>
impl CapProvider<FsRead> for Cap<(NetBind, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for Cap<(NetConnect, FsRead)>
impl CapProvider<FsRead> for Cap<(NetConnect, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for Cap<(Spawn, FsRead)>
impl CapProvider<FsRead> for Cap<(Spawn, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for Cap<Ambient>
impl CapProvider<FsRead> for Cap<Ambient>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for Cap<FsAll>
impl CapProvider<FsRead> for Cap<FsAll>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for SendCap<(Ambient, FsRead)>
impl CapProvider<FsRead> for SendCap<(Ambient, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for SendCap<(EnvRead, FsRead)>
impl CapProvider<FsRead> for SendCap<(EnvRead, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for SendCap<(EnvWrite, FsRead)>
impl CapProvider<FsRead> for SendCap<(EnvWrite, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for SendCap<(FsAll, FsRead)>
impl CapProvider<FsRead> for SendCap<(FsAll, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for SendCap<(FsRead, Ambient)>
impl CapProvider<FsRead> for SendCap<(FsRead, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for SendCap<(FsRead, EnvRead)>
impl CapProvider<FsRead> for SendCap<(FsRead, EnvRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for SendCap<(FsRead, EnvWrite)>
impl CapProvider<FsRead> for SendCap<(FsRead, EnvWrite)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for SendCap<(FsRead, FsAll)>
impl CapProvider<FsRead> for SendCap<(FsRead, FsAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for SendCap<(FsRead, FsRead)>
impl CapProvider<FsRead> for SendCap<(FsRead, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for SendCap<(FsRead, FsWrite)>
impl CapProvider<FsRead> for SendCap<(FsRead, FsWrite)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for SendCap<(FsRead, NetAll)>
impl CapProvider<FsRead> for SendCap<(FsRead, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for SendCap<(FsRead, NetBind)>
impl CapProvider<FsRead> for SendCap<(FsRead, NetBind)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for SendCap<(FsRead, NetConnect)>
impl CapProvider<FsRead> for SendCap<(FsRead, NetConnect)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for SendCap<(FsRead, Spawn)>
impl CapProvider<FsRead> for SendCap<(FsRead, Spawn)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for SendCap<(FsWrite, FsRead)>
impl CapProvider<FsRead> for SendCap<(FsWrite, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for SendCap<(NetAll, FsRead)>
impl CapProvider<FsRead> for SendCap<(NetAll, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for SendCap<(NetBind, FsRead)>
impl CapProvider<FsRead> for SendCap<(NetBind, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for SendCap<(NetConnect, FsRead)>
impl CapProvider<FsRead> for SendCap<(NetConnect, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for SendCap<(Spawn, FsRead)>
impl CapProvider<FsRead> for SendCap<(Spawn, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for SendCap<Ambient>
impl CapProvider<FsRead> for SendCap<Ambient>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.Source§impl CapProvider<FsRead> for SendCap<FsAll>
impl CapProvider<FsRead> for SendCap<FsAll>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<FsRead>, CapSecError>
Provides a
Cap<P> for the given target, or returns an error if the
target is outside the capability’s scope.impl Permission for FsRead
impl Subsumes<FsRead> for FsAll
Auto Trait Implementations§
impl Freeze for FsRead
impl RefUnwindSafe for FsRead
impl Send for FsRead
impl Sync for FsRead
impl Unpin for FsRead
impl UnsafeUnpin for FsRead
impl UnwindSafe for FsRead
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