Struct async_rdma::QueuePairEndpointBuilder
source · pub struct QueuePairEndpointBuilder { /* private fields */ }
Expand description
Builder for QueuePairEndpoint
.
Implementations§
source§impl QueuePairEndpointBuilder
impl QueuePairEndpointBuilder
sourcepub fn qp_num(&mut self, value: u32) -> &mut Self
pub fn qp_num(&mut self, value: u32) -> &mut Self
A 24 bits value of the QP number of RC and UC QPs; when sending data, packets will be sent to this QP number and when receiving data, packets will be accepted only from this QP number
sourcepub fn lid(&mut self, value: u16) -> &mut Self
pub fn lid(&mut self, value: u16) -> &mut Self
A 16 bit address assigned to end nodes by the subnet manager.Each LID is unique within its subnet.
sourcepub fn gid(&mut self, value: Gid) -> &mut Self
pub fn gid(&mut self, value: Gid) -> &mut Self
A 128-bit identifier used to identify a Port on a network adapter, a port on a Router, or a Multicast Group.
A GID is a valid 128-bit IPv6 address (per RFC 2373) with additional properties / restrictions defined within IBA to facilitate efficient discovery, communication, and routing.
sourcepub fn build(&self) -> Result<QueuePairEndpoint, QueuePairEndpointBuilderError>
pub fn build(&self) -> Result<QueuePairEndpoint, QueuePairEndpointBuilderError>
Trait Implementations§
source§impl Clone for QueuePairEndpointBuilder
impl Clone for QueuePairEndpointBuilder
source§fn clone(&self) -> QueuePairEndpointBuilder
fn clone(&self) -> QueuePairEndpointBuilder
Returns a copy 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 more