pub struct HelperBackend { /* private fields */ }Expand description
Zone I/O through the helper.
Trait Implementations§
Source§impl Backend for HelperBackend
impl Backend for HelperBackend
Source§fn prepare(&self) -> SyncResult<()>
fn prepare(&self) -> SyncResult<()>
Create zone/subscription (idempotent).
Source§fn fetch_changes(&self, since: Option<&[u8]>) -> SyncResult<ChangePage>
fn fetch_changes(&self, since: Option<&[u8]>) -> SyncResult<ChangePage>
ONE delta page since
since (None = first fetch). Report an expired
token as SyncError::TokenExpired and a missing zone as ZoneMissing.Source§fn fetch_record(&self, record_name: &str) -> SyncResult<Option<RawRecord>>
fn fetch_record(&self, record_name: &str) -> SyncResult<Option<RawRecord>>
Point read, used to obtain a change tag for a known record.
Source§fn save_records(
&self,
records: &[RawRecord],
policy: SavePolicy,
) -> SyncResult<Vec<RecordOutcome>>
fn save_records( &self, records: &[RawRecord], policy: SavePolicy, ) -> SyncResult<Vec<RecordOutcome>>
Non-atomic batch save: one outcome per input.
Err = whole call failed.fn max_batch(&self) -> usize
Auto Trait Implementations§
impl !RefUnwindSafe for HelperBackend
impl !UnwindSafe for HelperBackend
impl Freeze for HelperBackend
impl Send for HelperBackend
impl Sync for HelperBackend
impl Unpin for HelperBackend
impl UnsafeUnpin for HelperBackend
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