pub struct FfiFeedDrain {
pub latest_changed_at: Option<String>,
pub server_heads: HashMap<String, Vec<u8>>,
}Expand description
A sync that drained the feed to its head, the evidence FfiWorkspace::expired_trash
needs before it judges a retention deadline.
Fields§
§latest_changed_at: Option<String>The latest server changed_at the drain saw (RFC 3339), or None for a drain that saw
no entry. Deadlines are judged at it alone, never by this device’s clock, so with
None nothing has expired.
server_heads: HashMap<String, Vec<u8>>Every asset the server’s feed lists, keyed by its id as the feed names it, with the
manifest_cbor of its latest entry (empty for an entry that carries no record). An
asset whose latest delete is not that head or before it is a held delete, which
never expires. Ids that are not UUIDs name no asset of this workspace and are ignored.
The map must cover the whole feed: a drain from the feed’s start (no cursor), or the
heads this app kept, entry by entry, across every cursored drain since one. A drain
resumed from a cursor lists only the assets that changed after it, so passing it alone
leaves out every asset whose delete an earlier sync indexed: each is judged held and
never expires, and the trash grows until the user empties it. That loses nothing, but
the sweep stops working.
Trait Implementations§
Source§impl Clone for FfiFeedDrain
impl Clone for FfiFeedDrain
Source§fn clone(&self) -> FfiFeedDrain
fn clone(&self) -> FfiFeedDrain
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 FfiFeedDrain
impl<UT> ConvertError<UT> for FfiFeedDrain
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Debug for FfiFeedDrain
impl Debug for FfiFeedDrain
impl Eq for FfiFeedDrain
Source§impl<UT> FfiConverter<UT> for FfiFeedDrain
impl<UT> FfiConverter<UT> for FfiFeedDrain
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 FfiFeedDrain
impl<UT> Lift<UT> for FfiFeedDrain
Source§impl<UT> LiftRef<UT> for FfiFeedDrain
impl<UT> LiftRef<UT> for FfiFeedDrain
type LiftType = FfiFeedDrain
Source§impl<UT> LiftReturn<UT> for FfiFeedDrain
impl<UT> LiftReturn<UT> for FfiFeedDrain
Source§type ReturnType = <FfiFeedDrain as Lift<UT>>::FfiType
type ReturnType = <FfiFeedDrain 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 FfiFeedDrain
impl<UT> Lower<UT> for FfiFeedDrain
Source§impl<UT> LowerError<UT> for FfiFeedDrain
impl<UT> LowerError<UT> for FfiFeedDrain
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for FfiFeedDrain
impl<UT> LowerReturn<UT> for FfiFeedDrain
Source§type ReturnType = <FfiFeedDrain as Lower<UT>>::FfiType
type ReturnType = <FfiFeedDrain 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 PartialEq for FfiFeedDrain
impl PartialEq for FfiFeedDrain
Source§fn eq(&self, other: &FfiFeedDrain) -> bool
fn eq(&self, other: &FfiFeedDrain) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FfiFeedDrain
Source§impl<UT> TypeId<UT> for FfiFeedDrain
impl<UT> TypeId<UT> for FfiFeedDrain
const TYPE_ID_META: MetadataBuffer
Auto Trait Implementations§
impl Freeze for FfiFeedDrain
impl RefUnwindSafe for FfiFeedDrain
impl Send for FfiFeedDrain
impl Sync for FfiFeedDrain
impl Unpin for FfiFeedDrain
impl UnsafeUnpin for FfiFeedDrain
impl UnwindSafe for FfiFeedDrain
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§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