pub struct NetAll;Expand description
Permission for all network operations. Subsumes NetConnect and NetBind.
Trait Implementations§
Source§impl CapProvider<NetAll> for Cap<(Ambient, NetAll)>
impl CapProvider<NetAll> for Cap<(Ambient, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for Cap<(EnvRead, NetAll)>
impl CapProvider<NetAll> for Cap<(EnvRead, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for Cap<(EnvWrite, NetAll)>
impl CapProvider<NetAll> for Cap<(EnvWrite, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for Cap<(FsAll, NetAll)>
impl CapProvider<NetAll> for Cap<(FsAll, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for Cap<(FsRead, NetAll)>
impl CapProvider<NetAll> for Cap<(FsRead, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for Cap<(FsWrite, NetAll)>
impl CapProvider<NetAll> for Cap<(FsWrite, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for Cap<(NetAll, Ambient)>
impl CapProvider<NetAll> for Cap<(NetAll, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for Cap<(NetAll, EnvRead)>
impl CapProvider<NetAll> for Cap<(NetAll, EnvRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for Cap<(NetAll, EnvWrite)>
impl CapProvider<NetAll> for Cap<(NetAll, EnvWrite)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for Cap<(NetAll, FsAll)>
impl CapProvider<NetAll> for Cap<(NetAll, FsAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for Cap<(NetAll, FsRead)>
impl CapProvider<NetAll> for Cap<(NetAll, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for Cap<(NetAll, FsWrite)>
impl CapProvider<NetAll> for Cap<(NetAll, FsWrite)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for Cap<(NetAll, NetAll)>
impl CapProvider<NetAll> for Cap<(NetAll, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for Cap<(NetAll, NetBind)>
impl CapProvider<NetAll> for Cap<(NetAll, NetBind)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for Cap<(NetAll, NetConnect)>
impl CapProvider<NetAll> for Cap<(NetAll, NetConnect)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for Cap<(NetAll, Spawn)>
impl CapProvider<NetAll> for Cap<(NetAll, Spawn)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for Cap<(NetBind, NetAll)>
impl CapProvider<NetAll> for Cap<(NetBind, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for Cap<(NetConnect, NetAll)>
impl CapProvider<NetAll> for Cap<(NetConnect, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for Cap<(Spawn, NetAll)>
impl CapProvider<NetAll> for Cap<(Spawn, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for Cap<Ambient>
impl CapProvider<NetAll> for Cap<Ambient>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for SendCap<(Ambient, NetAll)>
impl CapProvider<NetAll> for SendCap<(Ambient, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for SendCap<(EnvRead, NetAll)>
impl CapProvider<NetAll> for SendCap<(EnvRead, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for SendCap<(EnvWrite, NetAll)>
impl CapProvider<NetAll> for SendCap<(EnvWrite, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for SendCap<(FsAll, NetAll)>
impl CapProvider<NetAll> for SendCap<(FsAll, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for SendCap<(FsRead, NetAll)>
impl CapProvider<NetAll> for SendCap<(FsRead, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for SendCap<(FsWrite, NetAll)>
impl CapProvider<NetAll> for SendCap<(FsWrite, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for SendCap<(NetAll, Ambient)>
impl CapProvider<NetAll> for SendCap<(NetAll, Ambient)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for SendCap<(NetAll, EnvRead)>
impl CapProvider<NetAll> for SendCap<(NetAll, EnvRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for SendCap<(NetAll, EnvWrite)>
impl CapProvider<NetAll> for SendCap<(NetAll, EnvWrite)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for SendCap<(NetAll, FsAll)>
impl CapProvider<NetAll> for SendCap<(NetAll, FsAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for SendCap<(NetAll, FsRead)>
impl CapProvider<NetAll> for SendCap<(NetAll, FsRead)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for SendCap<(NetAll, FsWrite)>
impl CapProvider<NetAll> for SendCap<(NetAll, FsWrite)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for SendCap<(NetAll, NetAll)>
impl CapProvider<NetAll> for SendCap<(NetAll, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for SendCap<(NetAll, NetBind)>
impl CapProvider<NetAll> for SendCap<(NetAll, NetBind)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for SendCap<(NetAll, NetConnect)>
impl CapProvider<NetAll> for SendCap<(NetAll, NetConnect)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for SendCap<(NetAll, Spawn)>
impl CapProvider<NetAll> for SendCap<(NetAll, Spawn)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for SendCap<(NetBind, NetAll)>
impl CapProvider<NetAll> for SendCap<(NetBind, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for SendCap<(NetConnect, NetAll)>
impl CapProvider<NetAll> for SendCap<(NetConnect, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for SendCap<(Spawn, NetAll)>
impl CapProvider<NetAll> for SendCap<(Spawn, NetAll)>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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<NetAll> for SendCap<Ambient>
impl CapProvider<NetAll> for SendCap<Ambient>
Source§fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, CapSecError>
fn provide_cap(&self, _target: &str) -> Result<Cap<NetAll>, 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 NetAll
impl Subsumes<NetBind> for NetAll
impl Subsumes<NetConnect> for NetAll
Auto Trait Implementations§
impl Freeze for NetAll
impl RefUnwindSafe for NetAll
impl Send for NetAll
impl Sync for NetAll
impl Unpin for NetAll
impl UnsafeUnpin for NetAll
impl UnwindSafe for NetAll
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