[][src]Enum libanu::change::Record

pub enum Record<Hash, Local> {
    FileMove {
        del: Atom<Hash>,
        add: Atom<Hash>,
        confirm: Option<Atom<Hash>>,
        path: String,
    },
    FileDel {
        del: Atom<Hash>,
        confirm: Option<Atom<Hash>>,
        contents: Option<Atom<Hash>>,
        path: String,
    },
    FileUndel {
        undel: Atom<Hash>,
        confirm: Option<Atom<Hash>>,
        contents: Option<Atom<Hash>>,
        path: String,
    },
    FileAdd {
        add_name: Atom<Hash>,
        add_inode: Atom<Hash>,
        contents: Option<Atom<Hash>>,
        path: String,
    },
    SolveNameConflict {
        name: Atom<Hash>,
        confirm: Option<Atom<Hash>>,
        path: String,
    },
    UnsolveNameConflict {
        name: Atom<Hash>,
        confirm: Option<Atom<Hash>>,
        path: String,
    },
    Edit {
        change: Atom<Hash>,
        local: Local,
    },
    Replacement {
        change: Atom<Hash>,
        replacement: Atom<Hash>,
        local: Local,
    },
    SolveOrderConflict {
        change: Atom<Hash>,
        local: Local,
    },
    UnsolveOrderConflict {
        change: Atom<Hash>,
        local: Local,
    },
    ResurrectZombies {
        alive: Atom<Hash>,
        dead: Atom<Hash>,
        local: Local,
    },
}

Variants

FileMove

Fields of FileMove

del: Atom<Hash>add: Atom<Hash>confirm: Option<Atom<Hash>>path: String
FileDel

Fields of FileDel

del: Atom<Hash>confirm: Option<Atom<Hash>>contents: Option<Atom<Hash>>path: String
FileUndel

Fields of FileUndel

undel: Atom<Hash>confirm: Option<Atom<Hash>>contents: Option<Atom<Hash>>path: String
FileAdd

Fields of FileAdd

add_name: Atom<Hash>add_inode: Atom<Hash>contents: Option<Atom<Hash>>path: String
SolveNameConflict

Fields of SolveNameConflict

name: Atom<Hash>confirm: Option<Atom<Hash>>path: String
UnsolveNameConflict

Fields of UnsolveNameConflict

name: Atom<Hash>confirm: Option<Atom<Hash>>path: String
Edit

Fields of Edit

change: Atom<Hash>local: Local
Replacement

Fields of Replacement

change: Atom<Hash>replacement: Atom<Hash>local: Local
SolveOrderConflict

Fields of SolveOrderConflict

change: Atom<Hash>local: Local
UnsolveOrderConflict

Fields of UnsolveOrderConflict

change: Atom<Hash>local: Local
ResurrectZombies

Fields of ResurrectZombies

alive: Atom<Hash>dead: Atom<Hash>local: Local

Implementations

impl<L: Clone> Record<Option<Hash>, L>[src]

pub fn inverse(&self, hash: &Hash) -> Self[src]

impl<Context, Local> Record<Context, Local>[src]

pub fn iter(&self) -> RecordIter<&Record<Context, Local>, &Atom<Context>>[src]

pub fn rev_iter(&self) -> RevRecordIter<&Record<Context, Local>, &Atom<Context>>

Notable traits for RevRecordIter<&'a Record<Context, Local>, &'a Atom<Context>>

impl<'a, Context, Local> Iterator for RevRecordIter<&'a Record<Context, Local>, &'a Atom<Context>> type Item = &'a Atom<Context>;
[src]

impl<H> Record<H, Local>[src]

pub fn path(&self) -> &str[src]

pub fn line(&self) -> Option<usize>[src]

impl<Local> Record<Option<ChangeId>, Local>[src]

pub fn globalize<T: TxnT>(self, txn: &T) -> Record<Option<Hash>, Local>[src]

Trait Implementations

impl<Hash: Clone, Local: Clone> Clone for Record<Hash, Local>[src]

impl<Hash: Debug, Local: Debug> Debug for Record<Hash, Local>[src]

impl<'de, Hash, Local> Deserialize<'de> for Record<Hash, Local> where
    Hash: Deserialize<'de>,
    Local: Deserialize<'de>, 
[src]

impl<Hash: Eq, Local: Eq> Eq for Record<Hash, Local>[src]

impl<Context, Local> IntoIterator for Record<Context, Local>[src]

type IntoIter = RecordIter<Record<Context, Local>, Atom<Context>>

Which kind of iterator are we turning this into?

type Item = Atom<Context>

The type of the elements being iterated over.

impl<Hash: PartialEq, Local: PartialEq> PartialEq<Record<Hash, Local>> for Record<Hash, Local>[src]

impl<Hash, Local> Serialize for Record<Hash, Local> where
    Hash: Serialize,
    Local: Serialize
[src]

impl<Hash, Local> StructuralEq for Record<Hash, Local>[src]

impl<Hash, Local> StructuralPartialEq for Record<Hash, Local>[src]

Auto Trait Implementations

impl<Hash, Local> RefUnwindSafe for Record<Hash, Local> where
    Hash: RefUnwindSafe,
    Local: RefUnwindSafe

impl<Hash, Local> Send for Record<Hash, Local> where
    Hash: Send,
    Local: Send

impl<Hash, Local> Sync for Record<Hash, Local> where
    Hash: Sync,
    Local: Sync

impl<Hash, Local> Unpin for Record<Hash, Local> where
    Hash: Unpin,
    Local: Unpin

impl<Hash, Local> UnwindSafe for Record<Hash, Local> where
    Hash: UnwindSafe,
    Local: UnwindSafe

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> Same<T> for T

type Output = T

Should always be Self

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