[][src]Enum places::history_sync::plan::IncomingPlan

pub enum IncomingPlan {
    Skip,
    Invalid(Error),
    Failed(Error),
    Delete,
    Apply {
        url: Url,
        new_title: Option<String>,
        visits: Vec<HistoryRecordVisit>,
    },
    Reconciled,
}

This is the action we will take locally for each incoming record. For example, IncomingPlan::Delete means we will be deleting a local record and not that we will be uploading a tombstone or deleting the record itself.

Variants

Skip

An entry we just want to ignore - either due to the URL etc, or because no changes.

Invalid(Error)

Something's wrong with this entry.

Failed(Error)

The entry appears sane, but there was some error.

Delete

We should locally delete this.

Apply

We should apply this.

Fields of Apply

url: Urlnew_title: Option<String>visits: Vec<HistoryRecordVisit>
Reconciled

Entry exists locally and it's the same as the incoming record. This is subtly different from Skip as we may still need to write metadata to the local DB for reconciled items.

Trait Implementations

impl Debug for IncomingPlan[src]

Auto Trait Implementations

impl !RefUnwindSafe for IncomingPlan

impl Send for IncomingPlan

impl Sync for IncomingPlan

impl Unpin for IncomingPlan

impl !UnwindSafe for IncomingPlan

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,