pub enum InitMethod {
TcpRendezvous {
master_addr: String,
master_port: u16,
},
EnvVars,
FileStore(PathBuf),
}Expand description
How the distributed runtime discovers peers.
Variants§
TcpRendezvous
TCP-based rendezvous through a master node.
EnvVars
Read configuration from environment variables
(MASTER_ADDR, MASTER_PORT, RANK, WORLD_SIZE).
FileStore(PathBuf)
File-system rendezvous via a shared directory.
Trait Implementations§
Source§impl Clone for InitMethod
impl Clone for InitMethod
Source§fn clone(&self) -> InitMethod
fn clone(&self) -> InitMethod
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InitMethod
impl RefUnwindSafe for InitMethod
impl Send for InitMethod
impl Sync for InitMethod
impl Unpin for InitMethod
impl UnsafeUnpin for InitMethod
impl UnwindSafe for InitMethod
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