Struct crdts::vvwe::CausalityBarrier [−][src]
pub struct CausalityBarrier<A: Hash + Eq, T: CausalOp<A>> { pub buffer: HashMap<Dot<A>, T>, // some fields omitted }
Version Vector with Exceptions
Fields
buffer: HashMap<Dot<A>, T>
Implementations
impl<A: Hash + Clone + Eq, T: CausalOp<A>> CausalityBarrier<A, T>
[src]
pub fn new() -> Self
[src]
pub fn ingest(&mut self, op: T) -> Option<T>
[src]
pub fn expel(&mut self, op: T) -> T
[src]
pub fn diff_from(
&self,
other: &HashMap<A, VectorEntry>
) -> HashMap<A, HashSet<u64>>
[src]
&self,
other: &HashMap<A, VectorEntry>
) -> HashMap<A, HashSet<u64>>
pub fn vvwe(&self) -> HashMap<A, VectorEntry>
[src]
Trait Implementations
impl<A: Debug + Hash + Eq, T: Debug + CausalOp<A>> Debug for CausalityBarrier<A, T>
[src]
impl<A: Hash + Eq, T: CausalOp<A>> Default for CausalityBarrier<A, T>
[src]
impl<'de, A: Hash + Eq, T: CausalOp<A>> Deserialize<'de> for CausalityBarrier<A, T> where
A: Deserialize<'de>,
T: Deserialize<'de>,
[src]
A: Deserialize<'de>,
T: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<A: Hash + Eq, T: CausalOp<A>> Serialize for CausalityBarrier<A, T> where
A: Serialize,
T: Serialize,
[src]
A: Serialize,
T: Serialize,
Auto Trait Implementations
impl<A, T> RefUnwindSafe for CausalityBarrier<A, T> where
A: RefUnwindSafe,
T: RefUnwindSafe,
A: RefUnwindSafe,
T: RefUnwindSafe,
impl<A, T> Send for CausalityBarrier<A, T> where
A: Send,
T: Send,
A: Send,
T: Send,
impl<A, T> Sync for CausalityBarrier<A, T> where
A: Sync,
T: Sync,
A: Sync,
T: Sync,
impl<A, T> Unpin for CausalityBarrier<A, T> where
A: Unpin,
T: Unpin,
A: Unpin,
T: Unpin,
impl<A, T> UnwindSafe for CausalityBarrier<A, T> where
A: UnwindSafe,
T: UnwindSafe,
A: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,