pub struct ClientBuilder {
pub client_info: Option<ClientInfo>,
pub config: Option<Config>,
pub handles: Option<Handles>,
}Fields§
§client_info: Option<ClientInfo>§config: Option<Config>§handles: Option<Handles>Implementations§
Source§impl ClientBuilder
impl ClientBuilder
pub fn with_client_info(self, client_info: &ClientInfo) -> Self
pub fn with_config(self, config: &Config) -> Self
pub fn with_handles(self, handles: &Handles) -> Self
pub fn build(self) -> Result<Client, Error>
Auto Trait Implementations§
impl Freeze for ClientBuilder
impl RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnwindSafe for ClientBuilder
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> 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