[−][src]Type Definition sled::CompareAndSwapResult
type CompareAndSwapResult = Result<Result<(), CompareAndSwapError>>;
Compare and swap result.
It returns Ok(Ok(())) if operation finishes successfully and - Ok(Err(CompareAndSwapError(current, proposed))) if operation failed to setup a new value. CompareAndSwapError contains current and proposed values. - Err(Error::Unsupported) if the database is opened in read-only mode. otherwise.