pub trait LocalRefs {
// Required method
fn tips(&self) -> Result<Vec<(String, ObjectId)>>;
}Expand description
The local half of a fetch: what this store already has.
One method, because one answer serves both questions the protocol asks of
the local side: the oids are the have list, and the names are what makes
RefUpdatePlan::old a real old value rather than a guess.
gunnar-server implements this over
GitOps::refs — one call,
one snapshot — and a test implements it over a Vec.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".