pub struct GlobalRegisterParams {
pub global_address: Address,
pub node_address: Address,
pub data_service_port: u16,
pub num_nodes: u32,
}Expand description
Helper struct for parameters in a multi-node register operation. Either they are all defined, or all not defined. Passed to the global client for registering on the global level and opening the p2p tensor service.
Fields§
§global_address: AddressThe address for the connection to the global orchestrator.
node_address: AddressThe address for the connection to this node.
data_service_port: u16The port on which to open the tensor data service for peer-to-peer tensor transfers with other nodes. Should match the port given in the node url.
num_nodes: u32The number of nodes globally. Should be the same between different nodes
Trait Implementations§
Source§impl Clone for GlobalRegisterParams
impl Clone for GlobalRegisterParams
Source§fn clone(&self) -> GlobalRegisterParams
fn clone(&self) -> GlobalRegisterParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GlobalRegisterParams
impl Debug for GlobalRegisterParams
Source§impl<'de> Deserialize<'de> for GlobalRegisterParams
impl<'de> Deserialize<'de> for GlobalRegisterParams
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 GlobalRegisterParams
impl RefUnwindSafe for GlobalRegisterParams
impl Send for GlobalRegisterParams
impl Sync for GlobalRegisterParams
impl Unpin for GlobalRegisterParams
impl UnsafeUnpin for GlobalRegisterParams
impl UnwindSafe for GlobalRegisterParams
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