pub struct OffsetSync {
pub topic: String,
pub partition: i32,
pub upstream: i64,
pub downstream: i64,
}Fields§
§topic: String§partition: i32§upstream: i64§downstream: i64Implementations§
Source§impl OffsetSync
impl OffsetSync
pub fn topic_name(source_alias: &str) -> String
pub fn key_bytes(&self) -> Vec<u8> ⓘ
pub fn value_bytes(&self) -> Vec<u8> ⓘ
pub fn from_bytes(key: &[u8], val: &[u8]) -> Result<Self, ReplicatorError>
Trait Implementations§
Source§impl Clone for OffsetSync
impl Clone for OffsetSync
Source§fn clone(&self) -> OffsetSync
fn clone(&self) -> OffsetSync
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 OffsetSync
impl Debug for OffsetSync
impl Eq for OffsetSync
Source§impl PartialEq for OffsetSync
impl PartialEq for OffsetSync
Source§fn eq(&self, other: &OffsetSync) -> bool
fn eq(&self, other: &OffsetSync) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OffsetSync
Auto Trait Implementations§
impl Freeze for OffsetSync
impl RefUnwindSafe for OffsetSync
impl Send for OffsetSync
impl Sync for OffsetSync
impl Unpin for OffsetSync
impl UnsafeUnpin for OffsetSync
impl UnwindSafe for OffsetSync
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.