pub enum Inbound {
Show 17 variants
HelloAck(Value),
Stored {
client_msg_id: String,
id: String,
seq: u64,
thread_id: String,
},
Deliver(Value),
Presence {
address: String,
worker_id: String,
role: String,
state: PresenceState,
at: u64,
names: PresenceNames,
},
Control {
lifted: bool,
control: Box<Control>,
},
PlaceDenied {
place: String,
code: String,
},
Resync {
place: String,
},
Error {
client_msg_id: Option<String>,
code: String,
reason: Option<String>,
quota: Option<Box<Value>>,
},
Ping,
ConsentAnswered {
consent_id: String,
},
TaskEvent(Box<TaskEvent>),
PlanAdvanced(Box<PlanAdvanced>),
DecisionChanged(Box<DecisionChanged>),
LogAdvanced {
place: String,
purge: bool,
},
TrustAdvanced {
place: String,
},
PolicyAdvanced {
version: u64,
},
Other(String),
}Expand description
The frames the engine reads; others are ignored by the relay.
Variants§
HelloAck(Value)
Stored
Deliver(Value)
Presence
Fields
state: PresenceStatenames: PresenceNamesThe optional names a Cloud relays with the presence.
Control
PlaceDenied
Resync
Error
Fields
Ping
ConsentAnswered
The person answered a consent in the browser (§3.8.2 step 4).
TaskEvent(Box<TaskEvent>)
C0 2.2: a task of a followed vault changed.
PlanAdvanced(Box<PlanAdvanced>)
§37: a plan of a followed vault has a new version (plan.advanced).
A hint only: nothing reaches an agent before the version is pulled
and its signature verified.
DecisionChanged(Box<DecisionChanged>)
§37: a team decision of a followed vault changed (decision.changed).
LogAdvanced
A place’s log grew (log.advanced): background sync tails it now.
purge (priority purge) skips the local debounce.
TrustAdvanced
A place’s trust (members, keys) moved (trust.advanced).
PolicyAdvanced
The effective policy of this instance has a new version
(policy.advanced). A hint only: nothing is applied before the
signed bundle is pulled and verified.
Other(String)
Trait Implementations§
impl StructuralPartialEq for Inbound
Auto Trait Implementations§
impl Forget for Inbound
impl Freeze for Inboundwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
*const Control is !null: Freeze,
PhantomData<Control>: Freeze,
*const Value is !null: Freeze,
*const TaskEvent is !null: Freeze,
PhantomData<TaskEvent>: Freeze,
*const PlanAdvanced is !null: Freeze,
PhantomData<PlanAdvanced>: Freeze,
*const DecisionChanged is !null: Freeze,
PhantomData<DecisionChanged>: Freeze,
impl Move for Inbound
impl RefUnwindSafe for Inbound
impl Send for Inbound
impl Sync for Inbound
impl Unpin for Inbound
impl UnsafeUnpin for Inboundwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const Control is !null: UnsafeUnpin,
PhantomData<Control>: UnsafeUnpin,
*const Value is !null: UnsafeUnpin,
*const TaskEvent is !null: UnsafeUnpin,
PhantomData<TaskEvent>: UnsafeUnpin,
*const PlanAdvanced is !null: UnsafeUnpin,
PhantomData<PlanAdvanced>: UnsafeUnpin,
*const DecisionChanged is !null: UnsafeUnpin,
PhantomData<DecisionChanged>: UnsafeUnpin,
impl UnwindSafe for Inboundwhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BoxRaw<Control>: UnwindSafe,
BoxRaw<Value>: UnwindSafe,
BoxRaw<TaskEvent>: UnwindSafe,
BoxRaw<PlanAdvanced>: UnwindSafe,
BoxRaw<DecisionChanged>: UnwindSafe,
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
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,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more