pub struct RunClient { /* private fields */ }Expand description
Reconnectable engine handle. Each request uses its own connection.
Implementations§
Source§impl RunClient
impl RunClient
Sourcepub fn connect(socket: impl AsRef<Path>) -> Result<Self>
pub fn connect(socket: impl AsRef<Path>) -> Result<Self>
Connects and negotiates the supported wire version.
Sourcepub fn request(&self, command: Command) -> Result<Response>
pub fn request(&self, command: Command) -> Result<Response>
Sends one command; acknowledgements include the resulting canonical snapshot.
Sourcepub fn status(&self) -> Result<Status>
pub fn status(&self) -> Result<Status>
Reads current status. Connection failure means liveness is unknown.
Sourcepub fn events(&self, after: u64) -> Result<Response>
pub fn events(&self, after: u64) -> Result<Response>
Returns a durable page after after; reconnect with the last received sequence.
Trait Implementations§
Auto Trait Implementations§
impl Forget for RunClient
impl Freeze for RunClient
impl Move for RunClient
impl RefUnwindSafe for RunClient
impl Send for RunClientwhere
RawVecInner: Send,
impl Sync for RunClientwhere
RawVecInner: Sync,
impl Unpin for RunClient
impl UnsafeUnpin for RunClient
impl UnwindSafe for RunClientwhere
RawVecInner: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§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