pub struct Ambient;Expand description
Full ambient authority — grants every permission.
This is the “god token.” A Cap<Ambient> satisfies any Has<P> bound.
Use sparingly and only at the capability root.
Trait Implementations§
Source§impl CapProvider<Ambient> for Cap<(Ambient, Ambient)>
impl CapProvider<Ambient> for Cap<(Ambient, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for Cap<(Ambient, EnvRead)>
impl CapProvider<Ambient> for Cap<(Ambient, EnvRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for Cap<(Ambient, EnvWrite)>
impl CapProvider<Ambient> for Cap<(Ambient, EnvWrite)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for Cap<(Ambient, FsAll)>
impl CapProvider<Ambient> for Cap<(Ambient, FsAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for Cap<(Ambient, FsRead)>
impl CapProvider<Ambient> for Cap<(Ambient, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for Cap<(Ambient, FsWrite)>
impl CapProvider<Ambient> for Cap<(Ambient, FsWrite)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for Cap<(Ambient, NetAll)>
impl CapProvider<Ambient> for Cap<(Ambient, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for Cap<(Ambient, NetBind)>
impl CapProvider<Ambient> for Cap<(Ambient, NetBind)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for Cap<(Ambient, NetConnect)>
impl CapProvider<Ambient> for Cap<(Ambient, NetConnect)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for Cap<(Ambient, Spawn)>
impl CapProvider<Ambient> for Cap<(Ambient, Spawn)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for Cap<(EnvRead, Ambient)>
impl CapProvider<Ambient> for Cap<(EnvRead, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for Cap<(EnvWrite, Ambient)>
impl CapProvider<Ambient> for Cap<(EnvWrite, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for Cap<(FsAll, Ambient)>
impl CapProvider<Ambient> for Cap<(FsAll, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for Cap<(FsRead, Ambient)>
impl CapProvider<Ambient> for Cap<(FsRead, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for Cap<(FsWrite, Ambient)>
impl CapProvider<Ambient> for Cap<(FsWrite, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for Cap<(NetAll, Ambient)>
impl CapProvider<Ambient> for Cap<(NetAll, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for Cap<(NetBind, Ambient)>
impl CapProvider<Ambient> for Cap<(NetBind, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for Cap<(NetConnect, Ambient)>
impl CapProvider<Ambient> for Cap<(NetConnect, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for Cap<(Spawn, Ambient)>
impl CapProvider<Ambient> for Cap<(Spawn, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for SendCap<(Ambient, Ambient)>
impl CapProvider<Ambient> for SendCap<(Ambient, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for SendCap<(Ambient, EnvRead)>
impl CapProvider<Ambient> for SendCap<(Ambient, EnvRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for SendCap<(Ambient, EnvWrite)>
impl CapProvider<Ambient> for SendCap<(Ambient, EnvWrite)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for SendCap<(Ambient, FsAll)>
impl CapProvider<Ambient> for SendCap<(Ambient, FsAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for SendCap<(Ambient, FsRead)>
impl CapProvider<Ambient> for SendCap<(Ambient, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for SendCap<(Ambient, FsWrite)>
impl CapProvider<Ambient> for SendCap<(Ambient, FsWrite)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for SendCap<(Ambient, NetAll)>
impl CapProvider<Ambient> for SendCap<(Ambient, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for SendCap<(Ambient, NetBind)>
impl CapProvider<Ambient> for SendCap<(Ambient, NetBind)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for SendCap<(Ambient, NetConnect)>
impl CapProvider<Ambient> for SendCap<(Ambient, NetConnect)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for SendCap<(Ambient, Spawn)>
impl CapProvider<Ambient> for SendCap<(Ambient, Spawn)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for SendCap<(EnvRead, Ambient)>
impl CapProvider<Ambient> for SendCap<(EnvRead, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for SendCap<(EnvWrite, Ambient)>
impl CapProvider<Ambient> for SendCap<(EnvWrite, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for SendCap<(FsAll, Ambient)>
impl CapProvider<Ambient> for SendCap<(FsAll, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for SendCap<(FsRead, Ambient)>
impl CapProvider<Ambient> for SendCap<(FsRead, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for SendCap<(FsWrite, Ambient)>
impl CapProvider<Ambient> for SendCap<(FsWrite, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for SendCap<(NetAll, Ambient)>
impl CapProvider<Ambient> for SendCap<(NetAll, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for SendCap<(NetBind, Ambient)>
impl CapProvider<Ambient> for SendCap<(NetBind, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for SendCap<(NetConnect, Ambient)>
impl CapProvider<Ambient> for SendCap<(NetConnect, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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<Ambient> for SendCap<(Spawn, Ambient)>
impl CapProvider<Ambient> for SendCap<(Spawn, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<Ambient>, 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 Ambient
impl<P> Subsumes<P> for Ambientwhere
P: Permission,
Auto Trait Implementations§
impl Freeze for Ambient
impl RefUnwindSafe for Ambient
impl Send for Ambient
impl Sync for Ambient
impl Unpin for Ambient
impl UnsafeUnpin for Ambient
impl UnwindSafe for Ambient
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