[][src]Struct logins::update_plan::UpdatePlan

pub(crate) struct UpdatePlan {
    pub delete_mirror: Vec<Guid>,
    pub delete_local: Vec<Guid>,
    pub local_updates: Vec<MirrorLogin>,
    pub mirror_inserts: Vec<(Login, i64, bool)>,
    pub mirror_updates: Vec<(Login, i64)>,
}

Fields

delete_mirror: Vec<Guid>delete_local: Vec<Guid>local_updates: Vec<MirrorLogin>mirror_inserts: Vec<(Login, i64, bool)>mirror_updates: Vec<(Login, i64)>

Implementations

impl UpdatePlan[src]

pub fn plan_two_way_merge(
    &mut self,
    local: &Login,
    upstream: (Login, ServerTimestamp)
)
[src]

pub fn plan_three_way_merge(
    &mut self,
    local: LocalLogin,
    shared: MirrorLogin,
    upstream: Login,
    upstream_time: ServerTimestamp,
    server_now: ServerTimestamp
)
[src]

pub fn plan_delete(&mut self, id: Guid)[src]

pub fn plan_mirror_update(&mut self, login: Login, time: ServerTimestamp)[src]

pub fn plan_mirror_insert(
    &mut self,
    login: Login,
    time: ServerTimestamp,
    is_override: bool
)
[src]

fn perform_deletes(
    &self,
    conn: &Connection,
    scope: &SqlInterruptScope
) -> Result<()>
[src]

fn perform_mirror_updates(
    &self,
    conn: &Connection,
    scope: &SqlInterruptScope
) -> Result<()>
[src]

fn perform_mirror_inserts(
    &self,
    conn: &Connection,
    scope: &SqlInterruptScope
) -> Result<()>
[src]

fn perform_local_updates(
    &self,
    conn: &Connection,
    scope: &SqlInterruptScope
) -> Result<()>
[src]

pub fn execute(
    &self,
    conn: &Connection,
    scope: &SqlInterruptScope
) -> Result<()>
[src]

Trait Implementations

impl Clone for UpdatePlan[src]

impl Debug for UpdatePlan[src]

impl Default for UpdatePlan[src]

Auto Trait Implementations

impl RefUnwindSafe for UpdatePlan

impl Send for UpdatePlan

impl Sync for UpdatePlan

impl Unpin for UpdatePlan

impl UnwindSafe for UpdatePlan

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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