[][src]Enum webext_storage::sync::incoming::IncomingAction

pub enum IncomingAction {
    DeleteLocally {
        ext_id: String,
        changes: StorageChanges,
    },
    TakeRemote {
        ext_id: String,
        data: Map<String, Value>,
        changes: StorageChanges,
    },
    Merge {
        ext_id: String,
        data: Map<String, Value>,
        changes: StorageChanges,
    },
    Same {
        ext_id: String,
    },
    Nothing,
}

This is the set of actions we know how to take locally for incoming records. Which one depends on the IncomingState. Every state which updates also records the set of changes we should notify

Variants

DeleteLocally

We should locally delete the data for this record

Fields of DeleteLocally

ext_id: Stringchanges: StorageChanges
TakeRemote

We will take the remote.

Fields of TakeRemote

ext_id: Stringdata: Map<String, Value>changes: StorageChanges
Merge

We merged this data - this is what we came up with.

Fields of Merge

ext_id: Stringdata: Map<String, Value>changes: StorageChanges
Same

Entry exists locally and it's the same as the incoming record.

Fields of Same

ext_id: String
Nothing

Incoming tombstone for an item we've never seen.

Trait Implementations

impl Debug for IncomingAction[src]

impl PartialEq<IncomingAction> for IncomingAction[src]

impl StructuralPartialEq for IncomingAction[src]

Auto Trait Implementations

impl RefUnwindSafe for IncomingAction

impl Send for IncomingAction

impl Sync for IncomingAction

impl Unpin for IncomingAction

impl UnwindSafe for IncomingAction

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>,