pub struct GenericDecoder<T: DeltaState> { /* private fields */ }Implementations§
Source§impl<T: DeltaState> GenericDecoder<T>
impl<T: DeltaState> GenericDecoder<T>
pub fn with_decode_config(decode_config: DecodeConfig) -> Self
pub fn apply_packet( &mut self, packet: Packet, ) -> Result<GenericApplyResult<T>, DeltaError>
pub fn apply_packet_with_migrations( &mut self, packet: Packet, migrations: &MigrationRegistry, ) -> Result<GenericApplyResult<T>, DeltaError>
pub fn state(&self) -> Option<&T>
pub fn sequence(&self) -> Option<u64>
pub fn reset(&mut self)
Trait Implementations§
Source§impl<T: DeltaState> Default for GenericDecoder<T>
impl<T: DeltaState> Default for GenericDecoder<T>
Auto Trait Implementations§
impl<T> Freeze for GenericDecoder<T>
impl<T> RefUnwindSafe for GenericDecoder<T>
impl<T> Send for GenericDecoder<T>
impl<T> Sync for GenericDecoder<T>
impl<T> Unpin for GenericDecoder<T>
impl<T> UnsafeUnpin for GenericDecoder<T>
impl<T> UnwindSafe for GenericDecoder<T>
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