pub struct WakeChannel {
pub gateway: String,
pub handle: String,
pub allowed_triggers: Vec<String>,
}Expand description
A device’s push wake channel — the opaque gateway handle plus the
VTA-owned trigger allowlist. Set via device/set-wake/0.1. Mirrors the push
wake-up binding (https://trusttasks.org/binding/push/0.1) WakeHandle +
WakeTriggerPolicy.
The raw platform push token is never stored here — it lives at the push
gateway alone, behind the opaque handle. The VTA holds only the handle and
the allowlist it provisions to the gateway.
Fields§
§gateway: StringThe push gateway that issued the handle (a DID or an https URL) — where the VTA and other triggers send a contentless wake.
handle: StringOpaque gateway-issued handle for this device’s push channel. Reveals no platform token; rotates when the device re-registers with the gateway.
allowed_triggers: Vec<String>DIDs the VTA has authorized to trigger a wake for this handle (the allowlist it provisions to the gateway). Typically the device’s mediator and/or the VTA’s own DID. Empty means no party may wake the device.
Trait Implementations§
Source§impl Clone for WakeChannel
impl Clone for WakeChannel
Source§fn clone(&self) -> WakeChannel
fn clone(&self) -> WakeChannel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more