pub struct WireRetainedUnit {
pub tx_id: u64,
pub record_type: u8,
pub lsn: u64,
pub data: Vec<u8>,
}Fields§
§tx_id: u64§record_type: u8§lsn: u64§data: Vec<u8>Implementations§
Source§impl WireRetainedUnit
impl WireRetainedUnit
Sourcepub fn encoded_len(&self) -> Result<u64, String>
pub fn encoded_len(&self) -> Result<u64, String>
Encoded byte length of this retained unit inside a sync pull result
payload. Keep this next to encode_retained_unit so metrics and
max-byte enforcement evolve with the wire shape.
Trait Implementations§
Source§impl Clone for WireRetainedUnit
impl Clone for WireRetainedUnit
Source§fn clone(&self) -> WireRetainedUnit
fn clone(&self) -> WireRetainedUnit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WireRetainedUnit
impl Debug for WireRetainedUnit
impl Eq for WireRetainedUnit
Source§impl PartialEq for WireRetainedUnit
impl PartialEq for WireRetainedUnit
Source§fn eq(&self, other: &WireRetainedUnit) -> bool
fn eq(&self, other: &WireRetainedUnit) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WireRetainedUnit
Auto Trait Implementations§
impl Freeze for WireRetainedUnit
impl RefUnwindSafe for WireRetainedUnit
impl Send for WireRetainedUnit
impl Sync for WireRetainedUnit
impl Unpin for WireRetainedUnit
impl UnsafeUnpin for WireRetainedUnit
impl UnwindSafe for WireRetainedUnit
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