pub struct PeerConfig {
pub library: PathBuf,
pub local_ip: String,
pub ib_device: String,
pub regions: Vec<(usize, usize)>,
pub engine_rank: i64,
pub metrics: Option<Arc<KvTransferMetrics>>,
}Expand description
What both roles start from.
Fields§
§library: PathBufThe Mooncake library (libtokenspeed_transfer_engine.so).
local_ip: StringThis rank’s address peers reach it at (get_local_ip_by_remote).
ib_device: StringThe RDMA devices to use, comma-separated; empty for all.
regions: Vec<(usize, usize)>The device ranges to register: the cache arena or its regions.
engine_rank: i64This rank’s global rank, for messages.
metrics: Option<Arc<KvTransferMetrics>>The transfer metrics, when the engine exports metrics.
Trait Implementations§
Source§impl Clone for PeerConfig
impl Clone for PeerConfig
Auto Trait Implementations§
impl Freeze for PeerConfig
impl RefUnwindSafe for PeerConfig
impl Send for PeerConfig
impl Sync for PeerConfig
impl Unpin for PeerConfig
impl UnsafeUnpin for PeerConfig
impl UnwindSafe for PeerConfig
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