pub struct FfiNotifyInput {
pub last_completed_sync: Option<String>,
pub unsynced_changes: u64,
pub recovery_next_due: Option<String>,
pub recovery_snoozed_until: Option<String>,
pub recovery_snooze_budget_spent: bool,
pub recovery_rewrap_due: bool,
pub quota_state: Option<FfiQuotaAdvisory>,
pub quarantine_pending: u64,
pub drops_pending: u64,
pub suppressed_until: HashMap<String, String>,
pub disabled: Vec<String>,
}Expand description
The device-held state the predicate decides from, flattened for the bindings.
Counts and instants only — no album id, no title, no asset id. An all-default value (every
Option None, every count 0, an empty map) is the “just installed, learned nothing”
input, and yields no alerts and no deadline.
Fields§
§last_completed_sync: Option<String>When the last completed sync finished (RFC 3339). None on a device that has never
completed one — which raises no sync_stale, because the alert is about a stale sync
and not a missing one. When None, unsynced_changes is ignored.
unsynced_changes: u64Changes still waiting to reach the server, including originals still pending under a staged upload policy.
recovery_next_due: Option<String>When the next recovery-verification prompt becomes due (RFC 3339). Project it from the
scheduler with
RecoveryCadence::notify_facts rather
than computing it here. None before recovery is set up, which ignores the other three
recovery_* fields.
recovery_snoozed_until: Option<String>When an active snooze on the recovery prompt expires (RFC 3339), if one is active. A
snooze ending before recovery_next_due does not make the check due earlier. This is
the canonical place to snooze the recovery check — not
suppressed_until, which is for the other five classes.
recovery_snooze_budget_spent: boolWhether the consecutive-snooze budget is spent — the class has degraded to a persistent, non-blocking badge: still reported, no longer pre-armed.
recovery_rewrap_due: boolWhether the scheduler has escalated to the guided re-wrap (repeated failures, or the user
declaring the secret lost). Surfaces as the alert’s recovery parameter, so the app
routes into the re-wrap flow instead of rendering a routine verification prompt.
quota_state: Option<FfiQuotaAdvisory>The state from the last GET /v1/quota. None before the first one.
quarantine_pending: u64How many items sit on the client’s quarantine surfaces awaiting a human. Excludes pending drops — they have their own class, so counting them here raises both.
drops_pending: u64How many guest drops are awaiting review and adoption.
suppressed_until: HashMap<String, String>Per-class snooze: class wire name (sync_stale, …) to the RFC 3339 instant the
snooze runs until, exclusive. A class snoozed past now reports nothing, and its alarm
is deferred to the snooze end rather than cancelled — a class snoozed after it fired
must fire again when the snooze expires. Use disabled to turn a class
off; do not encode that as a far-future instant here. An unrecognized class name is an
FfiError::InvalidArgument.
This map is for the other five classes. Recovery snoozing belongs in
recovery_snoozed_until, which the cadence scheduler
owns together with the budget that bounds it. An entry here for recovery_check_due is
honoured as a fallback (the later of the two wins) but is not the canonical channel.
disabled: Vec<String>Per-class disable: the wire names of the classes the user turned off. They report
nothing and hold no alarm, at any instant. Disabling suppresses the warning and never
the behavior. An unrecognized class name is an FfiError::InvalidArgument.
Trait Implementations§
Source§impl Clone for FfiNotifyInput
impl Clone for FfiNotifyInput
Source§fn clone(&self) -> FfiNotifyInput
fn clone(&self) -> FfiNotifyInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<UT> ConvertError<UT> for FfiNotifyInput
impl<UT> ConvertError<UT> for FfiNotifyInput
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Debug for FfiNotifyInput
impl Debug for FfiNotifyInput
Source§impl Default for FfiNotifyInput
impl Default for FfiNotifyInput
Source§fn default() -> FfiNotifyInput
fn default() -> FfiNotifyInput
Source§impl<UT> FfiConverter<UT> for FfiNotifyInput
impl<UT> FfiConverter<UT> for FfiNotifyInput
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
Source§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
Source§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
Source§impl<UT> Lift<UT> for FfiNotifyInput
impl<UT> Lift<UT> for FfiNotifyInput
Source§impl<UT> LiftRef<UT> for FfiNotifyInput
impl<UT> LiftRef<UT> for FfiNotifyInput
type LiftType = FfiNotifyInput
Source§impl<UT> LiftReturn<UT> for FfiNotifyInput
impl<UT> LiftReturn<UT> for FfiNotifyInput
Source§type ReturnType = <FfiNotifyInput as Lift<UT>>::FfiType
type ReturnType = <FfiNotifyInput as Lift<UT>>::FfiType
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> Lower<UT> for FfiNotifyInput
impl<UT> Lower<UT> for FfiNotifyInput
Source§impl<UT> LowerError<UT> for FfiNotifyInput
impl<UT> LowerError<UT> for FfiNotifyInput
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for FfiNotifyInput
impl<UT> LowerReturn<UT> for FfiNotifyInput
Source§type ReturnType = <FfiNotifyInput as Lower<UT>>::FfiType
type ReturnType = <FfiNotifyInput as Lower<UT>>::FfiType
Source§fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Source§impl<UT> TypeId<UT> for FfiNotifyInput
impl<UT> TypeId<UT> for FfiNotifyInput
const TYPE_ID_META: MetadataBuffer
Auto Trait Implementations§
impl Freeze for FfiNotifyInput
impl RefUnwindSafe for FfiNotifyInput
impl Send for FfiNotifyInput
impl Sync for FfiNotifyInput
impl Unpin for FfiNotifyInput
impl UnsafeUnpin for FfiNotifyInput
impl UnwindSafe for FfiNotifyInput
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,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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