pub struct RaftPeer {
pub id: u64,
pub addr: SocketAddr,
}Expand description
Controller configuration
This configuration defines the behavior and parameters of the RocketMQ controller. It manages broker election, state synchronization, and cluster coordination.
Fields§
§id: u64Node ID
addr: SocketAddrPeer address
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RaftPeer
impl<'de> Deserialize<'de> for RaftPeer
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
Auto Trait Implementations§
impl Freeze for RaftPeer
impl RefUnwindSafe for RaftPeer
impl Send for RaftPeer
impl Sync for RaftPeer
impl Unpin for RaftPeer
impl UnsafeUnpin for RaftPeer
impl UnwindSafe for RaftPeer
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