Skip to main content

StepAuthority

Trait StepAuthority 

Source
pub trait StepAuthority: Send + Sync {
    // Required method
    fn authorize(
        &self,
        branch: &str,
        first: RefWriteCondition,
        later_steps: bool,
    ) -> Result<(), String>;
}
Expand description

Grants a caller can check for every advance of a split push before anything is uploaded (B5).

Required Methods§

Source

fn authorize( &self, branch: &str, first: RefWriteCondition, later_steps: bool, ) -> Result<(), String>

Refuse the push unless the caller may perform the first advance under first and, when later_steps is set, every following advance, each of which is a Match on the previous step’s commit.

§Errors

The reason authority is missing, phrased for the user.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§