Skip to main content

sync

Function sync 

Source
pub fn sync(
    target: &Utf8Path,
    detected: &Detected,
    to: &Version,
) -> Result<Moved, AppError>
Expand description

Move one manager’s pin to to.

§Errors

AppError::Refused where the manager file no longer records the pin, or where the lock refresh fails; in the second case both files are put back before the error returns. AppError::Io where a file cannot be read or written.