Skip to main content

Capability

Struct Capability 

Source
pub struct Capability;
Expand description

Capability string constants.

Organized by the minimum tier required to hold each capability. Orthogonal capabilities (vpn.handshake, relay.reject) are not included in any tier and require explicit grants.

Implementations§

Source§

impl Capability

Source

pub const CHAT_SEND: &str = "chat.send"

Source

pub const CHAT_RECEIVE: &str = "chat.receive"

Source

pub const PAGE_BROWSE: &str = "page.browse"

Source

pub const RPC_PING: &str = "rpc.ping"

Source

pub const RPC_STATUS: &str = "rpc.status"

Source

pub const RELAY_REQUEST: &str = "relay.request"

Source

pub const RELAY_LIST: &str = "relay.list"

Source

pub const RELAY_TEARDOWN: &str = "relay.teardown"

Source

pub const RELAY_ACCEPT: &str = "relay.accept"

Source

pub const RPC_INBOX_READ: &str = "rpc.inbox_read"

Source

pub const WEB_READ: &str = "web.read"

Source

pub const RPC_CONFIG_UPDATE: &str = "rpc.config_update"

Source

pub const TERMINAL_RESTRICTED: &str = "terminal.restricted"

Source

pub const WEB_WRITE: &str = "web.write"

Source

pub const RELAY_REQUEST_PERMANENT: &str = "relay.request_permanent"

Source

pub const RELAY_ACCEPT_PERMANENT: &str = "relay.accept_permanent"

Source

pub const RELAY_PRIORITIZE: &str = "relay.prioritize"

Source

pub const RELAY_BRIDGE: &str = "relay.bridge"

Source

pub const RPC_EXEC: &str = "rpc.exec"

Source

pub const RPC_REBOOT: &str = "rpc.reboot"

Source

pub const RPC_SELF_UPDATE: &str = "rpc.self_update"

Source

pub const TERMINAL_FULL: &str = "terminal.full"

Source

pub const ADAPTER_PROVISION: &str = "adapter.provision"

Source

pub const RELAY_ADMIN: &str = "relay.admin"

Source

pub const TUNNEL_STATUS: &str = "tunnel.status"

View tunnel status and list active tunnels (Peer)

Source

pub const TUNNEL_ESTABLISH: &str = "tunnel.establish"

Initiate or accept tunnel establishment (Operator)

Source

pub const TUNNEL_TEARDOWN: &str = "tunnel.teardown"

Tear down an active tunnel (Operator)

Source

pub const VPN_HANDSHAKE: &str = "vpn.handshake"

Source

pub const RELAY_REJECT: &str = "relay.reject"

Source

pub const I2P_PROXY: &str = "i2p.proxy"

Source

pub const AETHER_DELEGATE: &str = "aether.delegate"

Source

pub const AETHER_QUERY: &str = "aether.query"

Source

pub const AETHER_REPORT: &str = "aether.report"

Auto Trait Implementations§

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> 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, 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.