pub struct ReplicationFollowerAuditTargetV1 { /* private fields */ }Expand description
A request-selected follower registration in one exact source lineage. This target grants no authority and contains no transport or credential data.
Implementations§
Source§impl ReplicationFollowerAuditTargetV1
impl ReplicationFollowerAuditTargetV1
Sourcepub const fn new(
database_id: DatabaseId,
history_incarnation: u64,
leadership_epoch: LeadershipEpochV1,
hold_id: ReplicationSourceHoldIdV1,
) -> Option<Self>
pub const fn new( database_id: DatabaseId, history_incarnation: u64, leadership_epoch: LeadershipEpochV1, hold_id: ReplicationSourceHoldIdV1, ) -> Option<Self>
Checks the remaining nonzero lineage component before target construction.
Sourcepub const fn database_id(self) -> DatabaseId
pub const fn database_id(self) -> DatabaseId
Exact source database identity.
Sourcepub const fn history_incarnation(self) -> u64
pub const fn history_incarnation(self) -> u64
Nonzero source history incarnation.
Sourcepub const fn leadership_epoch(self) -> LeadershipEpochV1
pub const fn leadership_epoch(self) -> LeadershipEpochV1
Nonzero source leadership epoch.
Sourcepub const fn hold_id(self) -> ReplicationSourceHoldIdV1
pub const fn hold_id(self) -> ReplicationSourceHoldIdV1
Opaque source-local registration identity.
Trait Implementations§
impl Copy for ReplicationFollowerAuditTargetV1
impl Eq for ReplicationFollowerAuditTargetV1
impl StructuralPartialEq for ReplicationFollowerAuditTargetV1
Auto Trait Implementations§
impl Freeze for ReplicationFollowerAuditTargetV1
impl RefUnwindSafe for ReplicationFollowerAuditTargetV1
impl Send for ReplicationFollowerAuditTargetV1
impl Sync for ReplicationFollowerAuditTargetV1
impl Unpin for ReplicationFollowerAuditTargetV1
impl UnsafeUnpin for ReplicationFollowerAuditTargetV1
impl UnwindSafe for ReplicationFollowerAuditTargetV1
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