pub enum SchemaVersion {
Schema0,
Schema1,
}
Expand description
The schema version.
For the complex handshake the schema is either 0 or 1. A chunk is 764 bytes. (1536 - 8) / 2 = 764 A schema of 0 means the digest is after the key, thus the digest is at offset 776 bytes (768 + 8). A schema of 1 means the digest is before the key thus the offset is at offset 8 bytes (0 + 8). Where 8 bytes is the time and version. (4 bytes each) The schema is determined by the client. The server will always use the schema the client uses.
Variants§
Trait Implementations§
Source§impl Clone for SchemaVersion
impl Clone for SchemaVersion
Source§fn clone(&self) -> SchemaVersion
fn clone(&self) -> SchemaVersion
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SchemaVersion
impl Debug for SchemaVersion
Source§impl PartialEq for SchemaVersion
impl PartialEq for SchemaVersion
impl Copy for SchemaVersion
impl Eq for SchemaVersion
impl StructuralPartialEq for SchemaVersion
Auto Trait Implementations§
impl Freeze for SchemaVersion
impl RefUnwindSafe for SchemaVersion
impl Send for SchemaVersion
impl Sync for SchemaVersion
impl Unpin for SchemaVersion
impl UnwindSafe for SchemaVersion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more