pub struct TypeConfig {}Trait Implementations§
Source§impl Clone for TypeConfig
impl Clone for TypeConfig
Source§fn clone(&self) -> TypeConfig
fn clone(&self) -> TypeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TypeConfig
Source§impl Debug for TypeConfig
impl Debug for TypeConfig
Source§impl Default for TypeConfig
impl Default for TypeConfig
Source§fn default() -> TypeConfig
fn default() -> TypeConfig
Returns the “default value” for a type. Read more
impl Eq for TypeConfig
Source§impl Ord for TypeConfig
impl Ord for TypeConfig
Source§fn cmp(&self, other: &TypeConfig) -> Ordering
fn cmp(&self, other: &TypeConfig) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TypeConfig
impl PartialEq for TypeConfig
Source§fn eq(&self, other: &TypeConfig) -> bool
fn eq(&self, other: &TypeConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TypeConfig
impl PartialOrd for TypeConfig
Source§impl RaftTypeConfig for TypeConfig
impl RaftTypeConfig for TypeConfig
Source§type Entry = Entry<TypeConfig>
type Entry = Entry<TypeConfig>
Raft log entry, which can be built from an AppData.
Source§type SnapshotData = Cursor<Vec<u8>>
type SnapshotData = Cursor<Vec<u8>>
Snapshot data for exposing a snapshot for reading & writing. Read more
Source§type Responder = OneshotResponder<TypeConfig>
type Responder = OneshotResponder<TypeConfig>
Send the response or error of a client write request(
WriteResult). Read moreSource§type AsyncRuntime = TokioRuntime
type AsyncRuntime = TokioRuntime
Asynchronous runtime type.
impl StructuralPartialEq for TypeConfig
Auto Trait Implementations§
impl Freeze for TypeConfig
impl RefUnwindSafe for TypeConfig
impl Send for TypeConfig
impl Sync for TypeConfig
impl Unpin for TypeConfig
impl UnsafeUnpin for TypeConfig
impl UnwindSafe for TypeConfig
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> 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 moreimpl<T> OptionalSend for T
impl<T> OptionalSync for T
Source§impl<T> TypeConfigExt for Twhere
T: RaftTypeConfig,
impl<T> TypeConfigExt for Twhere
T: RaftTypeConfig,
Source§fn now() -> <Self::AsyncRuntime as AsyncRuntime>::Instant
fn now() -> <Self::AsyncRuntime as AsyncRuntime>::Instant
Returns the current time.
Source§fn sleep(duration: Duration) -> <Self::AsyncRuntime as AsyncRuntime>::Sleep
fn sleep(duration: Duration) -> <Self::AsyncRuntime as AsyncRuntime>::Sleep
Wait until
duration has elapsed.Source§fn sleep_until(
deadline: <Self::AsyncRuntime as AsyncRuntime>::Instant,
) -> <Self::AsyncRuntime as AsyncRuntime>::Sleep
fn sleep_until( deadline: <Self::AsyncRuntime as AsyncRuntime>::Instant, ) -> <Self::AsyncRuntime as AsyncRuntime>::Sleep
Wait until
deadline is reached.Source§fn timeout<R, F>(
duration: Duration,
future: F,
) -> <Self::AsyncRuntime as AsyncRuntime>::Timeout<R, F>where
F: Future<Output = R> + OptionalSend,
fn timeout<R, F>(
duration: Duration,
future: F,
) -> <Self::AsyncRuntime as AsyncRuntime>::Timeout<R, F>where
F: Future<Output = R> + OptionalSend,
Require a
Future to complete before the specified duration has elapsed.Source§fn timeout_at<R, F>(
deadline: <Self::AsyncRuntime as AsyncRuntime>::Instant,
future: F,
) -> <Self::AsyncRuntime as AsyncRuntime>::Timeout<R, F>where
F: Future<Output = R> + OptionalSend,
fn timeout_at<R, F>(
deadline: <Self::AsyncRuntime as AsyncRuntime>::Instant,
future: F,
) -> <Self::AsyncRuntime as AsyncRuntime>::Timeout<R, F>where
F: Future<Output = R> + OptionalSend,
Require a
Future to complete before the specified instant in time.Source§fn oneshot<T>() -> (<Self::AsyncRuntime as AsyncRuntime>::OneshotSender<T>, <Self::AsyncRuntime as AsyncRuntime>::OneshotReceiver<T>)where
T: OptionalSend,
fn oneshot<T>() -> (<Self::AsyncRuntime as AsyncRuntime>::OneshotSender<T>, <Self::AsyncRuntime as AsyncRuntime>::OneshotReceiver<T>)where
T: OptionalSend,
Creates a new one-shot channel for sending single values. Read more
Source§fn spawn<T>(
future: T,
) -> <Self::AsyncRuntime as AsyncRuntime>::JoinHandle<<T as Future>::Output>
fn spawn<T>( future: T, ) -> <Self::AsyncRuntime as AsyncRuntime>::JoinHandle<<T as Future>::Output>
Spawn a new task.