Skip to main content

SyncRemoteClient

Struct SyncRemoteClient 

Source
pub struct SyncRemoteClient { /* private fields */ }

Implementations§

Source§

impl SyncRemoteClient

Source

pub fn new( schema: ClientSchema, client_id: impl Into<String>, ) -> Result<Self, RemoteClientError>

Source

pub fn for_operations( client_id: impl Into<String>, ) -> Result<Self, RemoteClientError>

Source

pub fn with_encryption(self, encryption: EncryptionConfig) -> Self

Source

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).

Source

pub fn prepare_commit( &self, input: RemoteCommitInput, ) -> Result<PreparedRemoteCommit, RemoteClientError>

Source

pub fn send_commit<T: Transport>( &self, transport: &mut T, prepared: &PreparedRemoteCommit, ) -> Result<RemoteCommitResult, RemoteClientError>

Source

pub fn commit<T: Transport>( &self, transport: &mut T, input: RemoteCommitInput, ) -> Result<RemoteCommitResult, RemoteClientError>

Source

pub fn query<T, Params, Row>( &self, transport: &mut T, operation_id: &str, params: &Params, ) -> Result<RemoteQueryResult<Row>, RemoteClientError>
where T: Transport, Params: Serialize, Row: DeserializeOwned,

Source

pub fn command<T, Input>( &self, transport: &mut T, operation_id: &str, request_id: &str, input: &Input, ) -> Result<RemoteCommandResult, RemoteClientError>
where T: Transport, Input: Serialize,

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.