pub struct AsupersyncAdapterMachine { /* private fields */ }Implementations§
Source§impl AsupersyncAdapterMachine
impl AsupersyncAdapterMachine
pub fn start(intent: AsupersyncTransferIntent) -> Result<Self, String>
pub fn resume_from_checkpoint( intent: AsupersyncTransferIntent, checkpoint: AsupersyncAdapterCheckpoint, ) -> Result<Self, String>
pub fn intent(&self) -> &AsupersyncTransferIntent
pub fn state(&self) -> AsupersyncAdapterState
pub fn attempt(&self) -> u8
pub fn committed_cursor(&self) -> u64
pub fn transitions(&self) -> &[AsupersyncAdapterTransition]
pub fn checkpoint(&self) -> AsupersyncAdapterCheckpoint
pub fn mark_capability_check(&mut self, supported: bool) -> Result<(), String>
pub fn record_chunk_commit(&mut self, cursor: u64) -> Result<(), String>
pub fn apply_resume_cursor(&mut self, resume_cursor: u64) -> Result<(), String>
pub fn record_transport_interruption(&mut self) -> Result<(), String>
pub fn start_checksum_verification(&mut self) -> Result<(), String>
pub fn finish_checksum_verification( &mut self, observed_checksum: &str, ) -> Result<(), String>
pub fn record_conflict( &mut self, expected_epoch: u64, observed_epoch: u64, ) -> Result<(), String>
pub fn validate_transition_log(&self) -> Result<(), String>
Trait Implementations§
Source§impl Clone for AsupersyncAdapterMachine
impl Clone for AsupersyncAdapterMachine
Source§fn clone(&self) -> AsupersyncAdapterMachine
fn clone(&self) -> AsupersyncAdapterMachine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AsupersyncAdapterMachine
impl Debug for AsupersyncAdapterMachine
Source§impl<'de> Deserialize<'de> for AsupersyncAdapterMachine
impl<'de> Deserialize<'de> for AsupersyncAdapterMachine
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AsupersyncAdapterMachine
Source§impl PartialEq for AsupersyncAdapterMachine
impl PartialEq for AsupersyncAdapterMachine
Source§fn eq(&self, other: &AsupersyncAdapterMachine) -> bool
fn eq(&self, other: &AsupersyncAdapterMachine) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AsupersyncAdapterMachine
impl Serialize for AsupersyncAdapterMachine
impl StructuralPartialEq for AsupersyncAdapterMachine
Auto Trait Implementations§
impl Freeze for AsupersyncAdapterMachine
impl RefUnwindSafe for AsupersyncAdapterMachine
impl Send for AsupersyncAdapterMachine
impl Sync for AsupersyncAdapterMachine
impl Unpin for AsupersyncAdapterMachine
impl UnsafeUnpin for AsupersyncAdapterMachine
impl UnwindSafe for AsupersyncAdapterMachine
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