MCPcopy Create free account
hub / github.com/Rustixir/darkbird / new

Method new

src/darkbird/wal/page_processor.rs:65–81  ·  view source on GitHub ↗
(root: &'a str, source_name: &'a str, source_total_page_size: usize,
               sync_name: Sync<'a>, vacuum: bool, 
               handler: fn(RQuery<OldKey, OldDoc>) -> RQuery<NewKey, NewDoc>)

Source from the content-addressed store, hash-verified

63{
64
65 pub fn new(root: &'a str, source_name: &'a str, source_total_page_size: usize,
66 sync_name: Sync<'a>, vacuum: bool,
67 handler: fn(RQuery<OldKey, OldDoc>) -> RQuery<NewKey, NewDoc>) -> Self
68 {
69 PageProcessor {
70 root,
71 source_name,
72 source_total_page_size,
73 sync_name,
74 vacuum,
75 handler,
76 phan_old_key: PhantomData,
77 phan_old_doc: PhantomData,
78 phan_new_key: PhantomData,
79 phan_new_doc: PhantomData,
80 }
81 }
82
83
84 pub fn start(self) -> Result<(), String> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected