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§
const OPERATION: RegistryOperation
Required Associated Types§
Required Methods§
Sourceasync fn send<Registry: StudyRegistry, K>(
registry: &mut Registry,
entries: Vec<BatchEntry<K, Self>>,
options: BatchOptions,
) -> BatchReply<K, Self, Self::Answer>
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.