Skip to main content

SendCap

Struct SendCap 

Source
pub struct SendCap<P: Permission> { /* private fields */ }
Expand description

A thread-safe capability token that can be sent across threads.

Created explicitly via Cap::make_send. Unlike Cap<P>, this implements Send + Sync, making it usable with std::thread::spawn, tokio::spawn, Arc, etc.

§Example

let root = test_root();
let send_cap = root.grant::<FsRead>().make_send();

std::thread::spawn(move || {
    let _cap = send_cap.as_cap();
    // use cap in this thread
}).join().unwrap();

Implementations§

Source§

impl<P: Permission> SendCap<P>

Source

pub fn as_cap(&self) -> Cap<P>

Returns a new Cap<P> from this send-capable token.

This creates a fresh Cap (not a reference cast) — safe because both types are zero-sized proof tokens.

Trait Implementations§

Source§

impl CapProvider<Ambient> for SendCap<(Ambient, Ambient)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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<EnvRead> for SendCap<(Ambient, EnvRead)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvRead>, 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<EnvRead> for SendCap<(EnvRead, Ambient)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvRead>, 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<EnvRead> for SendCap<(EnvRead, EnvRead)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvRead>, 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<EnvRead> for SendCap<(EnvRead, EnvWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvRead>, 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<EnvRead> for SendCap<(EnvRead, FsAll)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvRead>, 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<EnvRead> for SendCap<(EnvRead, FsRead)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvRead>, 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<EnvRead> for SendCap<(EnvRead, FsWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvRead>, 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<EnvRead> for SendCap<(EnvRead, NetAll)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvRead>, 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<EnvRead> for SendCap<(EnvRead, NetBind)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvRead>, 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<EnvRead> for SendCap<(EnvRead, NetConnect)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvRead>, 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<EnvRead> for SendCap<(EnvRead, Spawn)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvRead>, 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<EnvRead> for SendCap<(EnvWrite, EnvRead)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvRead>, 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<EnvRead> for SendCap<(FsAll, EnvRead)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvRead>, 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<EnvRead> for SendCap<(FsRead, EnvRead)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvRead>, 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<EnvRead> for SendCap<(FsWrite, EnvRead)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvRead>, 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<EnvRead> for SendCap<(NetAll, EnvRead)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvRead>, 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<EnvRead> for SendCap<(NetBind, EnvRead)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvRead>, 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<EnvRead> for SendCap<(NetConnect, EnvRead)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvRead>, 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<EnvRead> for SendCap<(Spawn, EnvRead)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvRead>, 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<EnvRead> for SendCap<Ambient>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvRead>, 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<EnvWrite> for SendCap<(Ambient, EnvWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvWrite>, 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<EnvWrite> for SendCap<(EnvRead, EnvWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvWrite>, 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<EnvWrite> for SendCap<(EnvWrite, Ambient)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvWrite>, 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<EnvWrite> for SendCap<(EnvWrite, EnvRead)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvWrite>, 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<EnvWrite> for SendCap<(EnvWrite, EnvWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvWrite>, 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<EnvWrite> for SendCap<(EnvWrite, FsAll)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvWrite>, 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<EnvWrite> for SendCap<(EnvWrite, FsRead)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvWrite>, 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<EnvWrite> for SendCap<(EnvWrite, FsWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvWrite>, 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<EnvWrite> for SendCap<(EnvWrite, NetAll)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvWrite>, 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<EnvWrite> for SendCap<(EnvWrite, NetBind)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvWrite>, 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<EnvWrite> for SendCap<(EnvWrite, NetConnect)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvWrite>, 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<EnvWrite> for SendCap<(EnvWrite, Spawn)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvWrite>, 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<EnvWrite> for SendCap<(FsAll, EnvWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvWrite>, 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<EnvWrite> for SendCap<(FsRead, EnvWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvWrite>, 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<EnvWrite> for SendCap<(FsWrite, EnvWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvWrite>, 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<EnvWrite> for SendCap<(NetAll, EnvWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvWrite>, 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<EnvWrite> for SendCap<(NetBind, EnvWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvWrite>, 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<EnvWrite> for SendCap<(NetConnect, EnvWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvWrite>, 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<EnvWrite> for SendCap<(Spawn, EnvWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvWrite>, 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<EnvWrite> for SendCap<Ambient>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<EnvWrite>, 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<FsAll> for SendCap<(Ambient, FsAll)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsAll>, 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<FsAll> for SendCap<(EnvRead, FsAll)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsAll>, 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<FsAll> for SendCap<(EnvWrite, FsAll)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsAll>, 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<FsAll> for SendCap<(FsAll, Ambient)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsAll>, 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<FsAll> for SendCap<(FsAll, EnvRead)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsAll>, 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<FsAll> for SendCap<(FsAll, EnvWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsAll>, 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<FsAll> for SendCap<(FsAll, FsAll)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsAll>, 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<FsAll> for SendCap<(FsAll, FsRead)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsAll>, 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<FsAll> for SendCap<(FsAll, FsWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsAll>, 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<FsAll> for SendCap<(FsAll, NetAll)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsAll>, 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<FsAll> for SendCap<(FsAll, NetBind)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsAll>, 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<FsAll> for SendCap<(FsAll, NetConnect)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsAll>, 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<FsAll> for SendCap<(FsAll, Spawn)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsAll>, 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<FsAll> for SendCap<(FsRead, FsAll)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsAll>, 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<FsAll> for SendCap<(FsWrite, FsAll)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsAll>, 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<FsAll> for SendCap<(NetAll, FsAll)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsAll>, 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<FsAll> for SendCap<(NetBind, FsAll)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsAll>, 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<FsAll> for SendCap<(NetConnect, FsAll)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsAll>, 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<FsAll> for SendCap<(Spawn, FsAll)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsAll>, 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<FsAll> for SendCap<Ambient>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsAll>, 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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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>

Source§

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>

Source§

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<FsWrite> for SendCap<(Ambient, FsWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsWrite>, 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<FsWrite> for SendCap<(EnvRead, FsWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsWrite>, 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<FsWrite> for SendCap<(EnvWrite, FsWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsWrite>, 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<FsWrite> for SendCap<(FsAll, FsWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsWrite>, 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<FsWrite> for SendCap<(FsRead, FsWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsWrite>, 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<FsWrite> for SendCap<(FsWrite, Ambient)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsWrite>, 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<FsWrite> for SendCap<(FsWrite, EnvRead)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsWrite>, 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<FsWrite> for SendCap<(FsWrite, EnvWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsWrite>, 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<FsWrite> for SendCap<(FsWrite, FsAll)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsWrite>, 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<FsWrite> for SendCap<(FsWrite, FsRead)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsWrite>, 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<FsWrite> for SendCap<(FsWrite, FsWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsWrite>, 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<FsWrite> for SendCap<(FsWrite, NetAll)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsWrite>, 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<FsWrite> for SendCap<(FsWrite, NetBind)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsWrite>, 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<FsWrite> for SendCap<(FsWrite, NetConnect)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsWrite>, 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<FsWrite> for SendCap<(FsWrite, Spawn)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsWrite>, 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<FsWrite> for SendCap<(NetAll, FsWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsWrite>, 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<FsWrite> for SendCap<(NetBind, FsWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsWrite>, 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<FsWrite> for SendCap<(NetConnect, FsWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsWrite>, 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<FsWrite> for SendCap<(Spawn, FsWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsWrite>, 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<FsWrite> for SendCap<Ambient>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsWrite>, 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<FsWrite> for SendCap<FsAll>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<FsWrite>, 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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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>

Source§

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<NetBind> for SendCap<(Ambient, NetBind)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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>

Source§

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>

Source§

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<NetConnect> for SendCap<(Ambient, NetConnect)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<NetConnect>, 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<NetConnect> for SendCap<(EnvRead, NetConnect)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<NetConnect>, 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<NetConnect> for SendCap<(EnvWrite, NetConnect)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<NetConnect>, 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<NetConnect> for SendCap<(FsAll, NetConnect)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<NetConnect>, 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<NetConnect> for SendCap<(FsRead, NetConnect)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<NetConnect>, 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<NetConnect> for SendCap<(FsWrite, NetConnect)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<NetConnect>, 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<NetConnect> for SendCap<(NetAll, NetConnect)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<NetConnect>, 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<NetConnect> for SendCap<(NetBind, NetConnect)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<NetConnect>, 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<NetConnect> for SendCap<(NetConnect, Ambient)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<NetConnect>, 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<NetConnect> for SendCap<(NetConnect, EnvRead)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<NetConnect>, 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<NetConnect> for SendCap<(NetConnect, EnvWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<NetConnect>, 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<NetConnect> for SendCap<(NetConnect, FsAll)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<NetConnect>, 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<NetConnect> for SendCap<(NetConnect, FsRead)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<NetConnect>, 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<NetConnect> for SendCap<(NetConnect, FsWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<NetConnect>, 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<NetConnect> for SendCap<(NetConnect, NetAll)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<NetConnect>, 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<NetConnect> for SendCap<(NetConnect, NetBind)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<NetConnect>, 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<NetConnect> for SendCap<(NetConnect, NetConnect)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<NetConnect>, 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<NetConnect> for SendCap<(NetConnect, Spawn)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<NetConnect>, 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<NetConnect> for SendCap<(Spawn, NetConnect)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<NetConnect>, 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<NetConnect> for SendCap<Ambient>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<NetConnect>, 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<NetConnect> for SendCap<NetAll>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<NetConnect>, CapSecError>

Provides a Cap<P> for the given target, or returns an error if the target is outside the capability’s scope.
Source§

impl<P: Permission> CapProvider<P> for SendCap<P>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<P>, 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<Spawn> for SendCap<(Ambient, Spawn)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<Spawn>, 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<Spawn> for SendCap<(EnvRead, Spawn)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<Spawn>, 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<Spawn> for SendCap<(EnvWrite, Spawn)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<Spawn>, 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<Spawn> for SendCap<(FsAll, Spawn)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<Spawn>, 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<Spawn> for SendCap<(FsRead, Spawn)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<Spawn>, 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<Spawn> for SendCap<(FsWrite, Spawn)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<Spawn>, 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<Spawn> for SendCap<(NetAll, Spawn)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<Spawn>, 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<Spawn> for SendCap<(NetBind, Spawn)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<Spawn>, 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<Spawn> for SendCap<(NetConnect, Spawn)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<Spawn>, 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<Spawn> for SendCap<(Spawn, Ambient)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<Spawn>, 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<Spawn> for SendCap<(Spawn, EnvRead)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<Spawn>, 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<Spawn> for SendCap<(Spawn, EnvWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<Spawn>, 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<Spawn> for SendCap<(Spawn, FsAll)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<Spawn>, 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<Spawn> for SendCap<(Spawn, FsRead)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<Spawn>, 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<Spawn> for SendCap<(Spawn, FsWrite)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<Spawn>, 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<Spawn> for SendCap<(Spawn, NetAll)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<Spawn>, 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<Spawn> for SendCap<(Spawn, NetBind)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<Spawn>, 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<Spawn> for SendCap<(Spawn, NetConnect)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<Spawn>, 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<Spawn> for SendCap<(Spawn, Spawn)>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<Spawn>, 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<Spawn> for SendCap<Ambient>

Source§

fn provide_cap(&self, _target: &str) -> Result<Cap<Spawn>, CapSecError>

Provides a Cap<P> for the given target, or returns an error if the target is outside the capability’s scope.
Source§

impl<P: Permission> Clone for SendCap<P>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<P: Permission> Has<P> for SendCap<P>

Source§

fn cap_ref(&self) -> Cap<P>

Returns a new Cap<P> proving the permission is available.
Source§

impl<P: Permission> Send for SendCap<P>

Source§

impl<P: Permission> Sync for SendCap<P>

Auto Trait Implementations§

§

impl<P> Freeze for SendCap<P>

§

impl<P> RefUnwindSafe for SendCap<P>
where P: RefUnwindSafe,

§

impl<P> Unpin for SendCap<P>
where P: Unpin,

§

impl<P> UnsafeUnpin for SendCap<P>

§

impl<P> UnwindSafe for SendCap<P>
where P: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.