[][src]Struct replit_protocol::OtPacket

pub struct OtPacket {
    pub spooky_version: u32,
    pub version: u32,
    pub ops: Vec<OtRuneTransformOp>,
    pub crc32: u32,
    pub committed: Option<Timestamp>,
    pub nonce: u32,
}

Fields

spooky_version: u32

so here's the deal. Once uppon a time spookyVersion was version and things worked okay. Then one day someone came along and decided our handling of version 0 was all kinds of messed up. Sending a version that already existed never transformed the packet by that particular version. It was as if version was treated as version + 1. This could not stand and thus the great rift of versions was created. version does the right thing and spookyVersion maintains backwards compatibility.

version: u32ops: Vec<OtRuneTransformOp>crc32: u32committed: Option<Timestamp>nonce: u32

Trait Implementations

impl Clone for OtPacket[src]

impl Debug for OtPacket[src]

impl Default for OtPacket[src]

impl Message for OtPacket[src]

impl PartialEq<OtPacket> for OtPacket[src]

impl StructuralPartialEq for OtPacket[src]

Auto Trait Implementations

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.