pub struct SyncRemoteClient { /* private fields */ }Implementations§
Source§impl SyncRemoteClient
impl SyncRemoteClient
pub fn new( schema: ClientSchema, client_id: impl Into<String>, ) -> Result<Self, RemoteClientError>
pub fn for_operations( client_id: impl Into<String>, ) -> Result<Self, RemoteClientError>
pub fn with_encryption(self, encryption: EncryptionConfig) -> Self
Sourcepub fn with_log_epoch(
self,
log_epoch: impl Into<String>,
) -> Result<Self, RemoteClientError>
pub fn with_log_epoch( self, log_epoch: impl Into<String>, ) -> Result<Self, RemoteClientError>
Bind prepared commit bytes to one acquired partition log epoch (§2.1).
pub fn prepare_commit( &self, input: RemoteCommitInput, ) -> Result<PreparedRemoteCommit, RemoteClientError>
pub fn send_commit<T: Transport>( &self, transport: &mut T, prepared: &PreparedRemoteCommit, ) -> Result<RemoteCommitResult, RemoteClientError>
pub fn commit<T: Transport>( &self, transport: &mut T, input: RemoteCommitInput, ) -> Result<RemoteCommitResult, RemoteClientError>
pub fn query<T, Params, Row>( &self, transport: &mut T, operation_id: &str, params: &Params, ) -> Result<RemoteQueryResult<Row>, RemoteClientError>
pub fn command<T, Input>( &self, transport: &mut T, operation_id: &str, request_id: &str, input: &Input, ) -> Result<RemoteCommandResult, RemoteClientError>
Auto Trait Implementations§
impl Freeze for SyncRemoteClient
impl RefUnwindSafe for SyncRemoteClient
impl Send for SyncRemoteClient
impl Sync for SyncRemoteClient
impl Unpin for SyncRemoteClient
impl UnsafeUnpin for SyncRemoteClient
impl UnwindSafe for SyncRemoteClient
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