pub enum Rebuild<'a> {
Database,
Pbf {
path: &'a Path,
sequence: Option<u64>,
replication: &'a Replication,
max_diffs: u64,
},
}Expand description
Where Mirror::rebuild takes node locations from. The reverse index is always made from the database’s ways.
Variants§
Database
The database: the points of the ways’ geometries, and the tagged nodes. Nodes in no way with a geometry and without tags are not in the database, so they are missing from the new file; they matter only if a later edit adds them to a way.
Pbf
A PBF file, then the diffs after it up to the database’s sequence: every node, as an import has it.
Fields
§
replication: &'a ReplicationThe database’s replication stream, which has the diffs.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Rebuild<'a>
impl<'a> !UnwindSafe for Rebuild<'a>
impl<'a> Forget for Rebuild<'a>
impl<'a> Freeze for Rebuild<'a>
impl<'a> Move for Rebuild<'a>
impl<'a> Send for Rebuild<'a>
impl<'a> Sync for Rebuild<'a>
impl<'a> Unpin for Rebuild<'a>
impl<'a> UnsafeUnpin for Rebuild<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more