pub struct ServerConnectionBuilder { /* private fields */ }Implementations§
Source§impl ServerConnectionBuilder
impl ServerConnectionBuilder
pub fn address(self, address: impl Into<String>) -> Self
pub fn network(self, network: Network) -> Self
pub fn access_token(self, access_token: impl Into<String>) -> Self
Sourcepub fn user_agent(self, user_agent: impl Into<String>) -> Self
pub fn user_agent(self, user_agent: impl Into<String>) -> Self
Override the client identifier sent on every RPC.
Defaults to bark/<bark-server-rpc version> when not set. Integrators
(FFI bindings, WASM wallets, custom apps) should pass their own ident
(e.g. "aqua/1.4.2") so server-side telemetry can attribute traffic.
pub async fn connect(self) -> Result<ServerConnection, ConnectError>
Trait Implementations§
Source§impl Default for ServerConnectionBuilder
impl Default for ServerConnectionBuilder
Source§fn default() -> ServerConnectionBuilder
fn default() -> ServerConnectionBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ServerConnectionBuilder
impl RefUnwindSafe for ServerConnectionBuilder
impl Send for ServerConnectionBuilder
impl Sync for ServerConnectionBuilder
impl Unpin for ServerConnectionBuilder
impl UnsafeUnpin for ServerConnectionBuilder
impl UnwindSafe for ServerConnectionBuilder
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