Skip to main content

BatchRequest

Trait BatchRequest 

Source
pub(crate) trait BatchRequest: Sized {
    type Answer;

    const OPERATION: RegistryOperation;

    // Required method
    async fn send<Registry: StudyRegistry, K>(
        registry: &mut Registry,
        entries: Vec<BatchEntry<K, Self>>,
        options: BatchOptions,
    ) -> BatchReply<K, Self, Self::Answer>;
}
Expand description

What one item of a batch operation asks: the item decides the operation it goes out under and the answer it gets back.

Required Associated Constants§

Required Associated Types§

Required Methods§

Source

async fn send<Registry: StudyRegistry, K>( registry: &mut Registry, entries: Vec<BatchEntry<K, Self>>, options: BatchOptions, ) -> BatchReply<K, Self, Self::Answer>

Sends entries in one request of Self::OPERATION.

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§