pub struct ReplicationReceiveBridge { /* private fields */ }Expand description
Bridge between client packet transport and decoded replication frames.
Implementations§
Source§impl ReplicationReceiveBridge
impl ReplicationReceiveBridge
Sourcepub const fn new(config: ReplicationReceiveConfig) -> Self
pub const fn new(config: ReplicationReceiveConfig) -> Self
Creates a receive bridge.
Sourcepub const fn config(&self) -> ReplicationReceiveConfig
pub const fn config(&self) -> ReplicationReceiveConfig
Returns configuration.
Sourcepub const fn stats(&self) -> ReplicationReceiveStats
pub const fn stats(&self) -> ReplicationReceiveStats
Returns accumulated statistics.
Sourcepub fn pump_owned<T>(
&mut self,
transport: &mut T,
max_packets: usize,
) -> Result<ReplicationReceivePump, ReplicationReceiveError<T::Error>>where
T: TransportReceiver,
pub fn pump_owned<T>(
&mut self,
transport: &mut T,
max_packets: usize,
) -> Result<ReplicationReceivePump, ReplicationReceiveError<T::Error>>where
T: TransportReceiver,
Receives and decodes up to max_packets replication frames.
Sourcepub fn pump<T, F, V>(
&mut self,
transport: &mut T,
max_packets: usize,
visitor: F,
) -> Result<ReplicationReceiveVisitReport, ReplicationReceiveVisitError<T::Error, V>>
pub fn pump<T, F, V>( &mut self, transport: &mut T, max_packets: usize, visitor: F, ) -> Result<ReplicationReceiveVisitReport, ReplicationReceiveVisitError<T::Error, V>>
Receives validated replication frames and visits borrowed deltas without materializing nested owned frame storage.
The visitor must consume borrowed component bytes before returning. Its error is surfaced separately from transport and frame-validation errors. A frame is counted as accepted after source/wire/target validation and before visitor invocation; accumulated bridge statistics are not rolled back when the visitor returns an error.
Trait Implementations§
Source§impl Clone for ReplicationReceiveBridge
impl Clone for ReplicationReceiveBridge
Source§fn clone(&self) -> ReplicationReceiveBridge
fn clone(&self) -> ReplicationReceiveBridge
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 moreAuto Trait Implementations§
impl Freeze for ReplicationReceiveBridge
impl RefUnwindSafe for ReplicationReceiveBridge
impl Send for ReplicationReceiveBridge
impl Sync for ReplicationReceiveBridge
impl Unpin for ReplicationReceiveBridge
impl UnsafeUnpin for ReplicationReceiveBridge
impl UnwindSafe for ReplicationReceiveBridge
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