pub struct KVOptions { /* private fields */ }Expand description
Options for KVClient
Implementations§
Source§impl KVOptions
impl KVOptions
pub fn channel(self) -> Channel
Sourcepub fn builder() -> KVOptionsBuilder
pub fn builder() -> KVOptionsBuilder
Creates a builder for KVOptions
§Examples
use rcfe_core::options::kv::{KVOptions, KVOptionsBuilder};
use tonic::transport::Channel;
let channel = Channel::from_static("http://localhost:2379");
let kv_options = KVOptions::builder()
.channel(channel)
.build()
.unwrap();Trait Implementations§
Auto Trait Implementations§
impl Freeze for KVOptions
impl !RefUnwindSafe for KVOptions
impl Send for KVOptions
impl Sync for KVOptions
impl Unpin for KVOptions
impl !UnwindSafe for KVOptions
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request