pub struct InMemoryHostedSyncTransport { /* private fields */ }Expand description
Deterministic in-memory hosted transport used as the replacement-boundary fixture.
Implementations§
Trait Implementations§
Source§impl Debug for InMemoryHostedSyncTransport
impl Debug for InMemoryHostedSyncTransport
Source§impl HostedSyncTransport for InMemoryHostedSyncTransport
impl HostedSyncTransport for InMemoryHostedSyncTransport
Source§fn connect(
&mut self,
credential: HostedSyncCredential,
) -> Result<(), HostedSyncError>
fn connect( &mut self, credential: HostedSyncCredential, ) -> Result<(), HostedSyncError>
Connects with an application-issued scoped credential. Read more
Source§fn refresh_credential(
&mut self,
credential: HostedSyncCredential,
) -> Result<(), HostedSyncError>
fn refresh_credential( &mut self, credential: HostedSyncCredential, ) -> Result<(), HostedSyncError>
Replaces the active credential before expiry (FR-005). Read more
Source§fn publish(
&mut self,
operation: EncryptedSyncOperation,
) -> Result<HostedSyncPublishReceipt, HostedSyncError>
fn publish( &mut self, operation: EncryptedSyncOperation, ) -> Result<HostedSyncPublishReceipt, HostedSyncError>
Publishes one encrypted operation without interpreting plaintext (FR-002). Read more
Source§fn replay_from(
&mut self,
cursor: Option<&str>,
) -> Result<HostedSyncReplayResult, HostedSyncError>
fn replay_from( &mut self, cursor: Option<&str>, ) -> Result<HostedSyncReplayResult, HostedSyncError>
Source§fn connection_state(&self) -> HostedSyncConnectionState
fn connection_state(&self) -> HostedSyncConnectionState
Returns the current connection / degraded / recovering state.
Source§fn advance_clock(&mut self, now_ms: u64)
fn advance_clock(&mut self, now_ms: u64)
Advances the host-supplied logical clock used for expiry and replay windows.
Source§fn set_relay_available(&mut self, available: bool)
fn set_relay_available(&mut self, available: bool)
Marks the relay available or unavailable (test and host control plane).
Source§fn observations(&self) -> &[HostedSyncObservation]
fn observations(&self) -> &[HostedSyncObservation]
Returns redacted observations accumulated since connect (FR-011).
Source§fn lineage(&self) -> &[HostedSyncLineageEvidence]
fn lineage(&self) -> &[HostedSyncLineageEvidence]
Returns lineage evidence for successfully relayed operations (FR-012).
Source§fn adapter_kind(&self) -> &'static str
fn adapter_kind(&self) -> &'static str
Adapter identity for conformance evidence (
in_memory or ably).Auto Trait Implementations§
impl Freeze for InMemoryHostedSyncTransport
impl RefUnwindSafe for InMemoryHostedSyncTransport
impl Send for InMemoryHostedSyncTransport
impl Sync for InMemoryHostedSyncTransport
impl Unpin for InMemoryHostedSyncTransport
impl UnsafeUnpin for InMemoryHostedSyncTransport
impl UnwindSafe for InMemoryHostedSyncTransport
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> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: Sized + AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: Sized + AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§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