pub struct ReplicationParams<'a> {
pub connection_url: &'a str,
pub slot_name: &'a str,
pub publication_name: &'a str,
pub proto_version: u32,
pub create_slot_if_missing: bool,
pub start_lsn: Option<u64>,
pub status_update_interval: Duration,
pub tcp_keepalive: Duration,
pub slot_type: SlotType,
pub tls: &'a CdcTls,
}Expand description
All parameters required to establish a logical replication connection.
This struct is accepted by every function in this module.
Fields§
§connection_url: &'a strpostgres://user:pass@host:port/db style URL.
slot_name: &'a strName of the replication slot (must already exist, or create_slot_if_missing = true).
publication_name: &'a strPublication name — must already exist on the server.
proto_version: u32pgoutput protocol version. Only 1 is currently supported.
create_slot_if_missing: boolCreate the slot if it does not already exist.
start_lsn: Option<u64>Optional LSN to resume from. None means “start from the slot’s
confirmed_flush_lsn”.
status_update_interval: DurationProtocol-level Standby Status Update cadence — must be shorter than
the server’s wal_sender_timeout.
tcp_keepalive: DurationTCP-level keepalive interval. Larger than status_update_interval
in normal operation.
slot_type: SlotTypeWhether a newly-created slot is permanent or temporary.
tls: &'a CdcTlsTLS settings for the replication connection.
Trait Implementations§
Source§impl<'a> Clone for ReplicationParams<'a>
impl<'a> Clone for ReplicationParams<'a>
Source§fn clone(&self) -> ReplicationParams<'a>
fn clone(&self) -> ReplicationParams<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for ReplicationParams<'a>
impl<'a> RefUnwindSafe for ReplicationParams<'a>
impl<'a> Send for ReplicationParams<'a>
impl<'a> Sync for ReplicationParams<'a>
impl<'a> Unpin for ReplicationParams<'a>
impl<'a> UnsafeUnpin for ReplicationParams<'a>
impl<'a> UnwindSafe for ReplicationParams<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more