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