Skip to main content

PreReceive

Trait PreReceive 

Source
pub trait PreReceive: MaybeSend + MaybeSync {
    // Required method
    fn check(
        &self,
        op: &Operation,
        pack: Option<&BlobKey>,
    ) -> impl Future<Output = Result<(), ServerError>> + MaybeSend;
}
Expand description

Stage 5: checks before apply. pack is set for uploads (M0-05b).

Required Methods§

Source

fn check( &self, op: &Operation, pack: Option<&BlobKey>, ) -> impl Future<Output = Result<(), ServerError>> + MaybeSend

Accept op, or return the error to answer with.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§