pub struct PgStreamFactory {
pub info: ConnectionInfo,
pub safety: SafetyConfig,
pub timeout: Duration,
pub slot: String,
pub publication: String,
pub max_message_bytes: usize,
}Expand description
Opens replication streams for run, verifying source identity and slot continuity.
Fields§
§info: ConnectionInfo§safety: SafetyConfig§timeout: Duration§slot: String§publication: String§max_message_bytes: usizeTrait Implementations§
Source§impl StreamFactory for PgStreamFactory
impl StreamFactory for PgStreamFactory
type Stream = PgEventStream
Source§async fn connect(&mut self, cp: &Checkpoint) -> Result<(PgEventStream, Lsn)>
async fn connect(&mut self, cp: &Checkpoint) -> Result<(PgEventStream, Lsn)>
Open a stream resuming from
cp.committed_lsn (the server may start later, at its
confirmed flush position). Implementations verify source identity and slot
continuity against cp and fail with ResyncRequired when continuity cannot be
proven. Returns the stream and the server’s current WAL end.Auto Trait Implementations§
impl Freeze for PgStreamFactory
impl RefUnwindSafe for PgStreamFactory
impl Send for PgStreamFactory
impl Sync for PgStreamFactory
impl Unpin for PgStreamFactory
impl UnsafeUnpin for PgStreamFactory
impl UnwindSafe for PgStreamFactory
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