timely::communication::allocator

Trait PeerBuilder

Source
pub trait PeerBuilder {
    type Peer: AllocateBuilder;

    // Required method
    fn new_vector(peers: usize, refill: BytesRefill) -> Vec<Self::Peer>;
}
Expand description

A builder for vectors of peers.

Required Associated Types§

Source

type Peer: AllocateBuilder

The peer type.

Required Methods§

Source

fn new_vector(peers: usize, refill: BytesRefill) -> Vec<Self::Peer>

Allocate a list of Self::Peer of length peers.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§