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 moreSource§impl Debug for WakeChannel
impl Debug for WakeChannel
Source§impl<'de> Deserialize<'de> for WakeChannel
impl<'de> Deserialize<'de> for WakeChannel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for WakeChannel
impl PartialEq for WakeChannel
Source§impl Serialize for WakeChannel
impl Serialize for WakeChannel
impl StructuralPartialEq for WakeChannel
Auto Trait Implementations§
impl Freeze for WakeChannel
impl RefUnwindSafe for WakeChannel
impl Send for WakeChannel
impl Sync for WakeChannel
impl Unpin for WakeChannel
impl UnsafeUnpin for WakeChannel
impl UnwindSafe for WakeChannel
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
fn deserialize_typed<S>(
_: &C,
deserializer: S,
) -> Result<T, <S as Deserializer<'de>>::Error>where
S: Deserializer<'de>,
impl<T, U> DeserializeTypedOwned<T> for Uwhere
U: for<'de> DeserializeTyped<'de, T>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
T.