pub fn reset_tip_to(&self, height: Height) -> Result<(), LayoutError> {
        let cp_name = self.checkpoint_name(height);
        let tip = self.tip_path();
        match self.cp_manager.reset_tip_to(&tip, &cp_name) {
            Ok(()) => Ok(()),
            Err(err) => Err(LayoutError::IoError {
                path: tip,
                message: format!(
                    "Failed to convert reset tip to checkpoint to {} (err kind: {:?})",
                    cp_name,
                    err.kind()
                ),
                io_err: err,
            }),
        }
    }
/// Resets "tip" to a checkpoint identified by height.
Resets "tip" to a checkpoint identified by height.
Resets " tip " to a checkpoint identified by height .
pub fn reset_tip_to(&self, height: Height) -> Result<(), LayoutError> {
        let cp_name = self.checkpoint_name(height);
        let tip = self.tip_path();
        match self.cp_manager.reset_tip_to(&tip, &cp_name) {
            Ok(()) => Ok(()),
            Err(err) => Err(LayoutError::IoError {
                path: tip,
                message: format!(
                    "Failed to convert reset tip to checkpoint to {} (err kind: {:?})",
                    cp_name,
                    err.kind()
                ),
                io_err: err,
            }),
        }
    }
pub fn reset_tip_to ( & self , height : Height ) -> Result < ( ) , LayoutError > { let cp_name = self . checkpoint_name ( height ) ; let tip = self . tip_path ( ) ; match self . cp_manager . reset_tip_to ( & tip , & cp_name ) { Ok ( ( ) ) => Ok ( ( ) ) , Err ( err ) => Err ( LayoutError :: IoError { path : tip , message : format ! ( " " cp_name err kind ( ) ) , io_err : err , } ) , } }
Resets "tip" to a checkpoint identified by height.
Resets " tip " to a checkpoint identified by height .
&self
height
Height
&self
height
Height