pub struct TsoPeer {
pub node_id: u64,
pub endpoint: PeerEndpoint,
}Expand description
A known peer node and the network endpoint where its TSO service can be reached for follower-redirect hints.
node_id is the consensus node identity (the OmniPaxos NodeId/pid or the
openraft NodeId). endpoint is the advertised tsoracle service address
surfaced via LeaderState::Follower::leader_endpoint when this peer is the
elected leader. This is the cross-backend shape consensus drivers share so
the leader_endpoint derivation reads the same regardless of the engine
underneath.
Fields§
§node_id: u64§endpoint: PeerEndpointTrait Implementations§
Source§impl<'de> Deserialize<'de> for TsoPeer
impl<'de> Deserialize<'de> for TsoPeer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TsoPeer
impl StructuralPartialEq for TsoPeer
Auto Trait Implementations§
impl Freeze for TsoPeer
impl RefUnwindSafe for TsoPeer
impl Send for TsoPeer
impl Sync for TsoPeer
impl Unpin for TsoPeer
impl UnsafeUnpin for TsoPeer
impl UnwindSafe for TsoPeer
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