[][src]Struct brpc_rs::Channel

pub struct Channel {
    pub inner: *mut BrpcChannel,
}

A Channel provides a connection to a BRPC server on a specified host and port and is used when creating a client stub

Fields

inner: *mut BrpcChannel

Methods

impl Channel[src]

pub fn with_options(sockaddr: &SocketAddr, options: &ChannelOptions) -> Self[src]

Make a Channel with the provided socker address and ChannelOptions.

Trait Implementations

impl Drop for Channel[src]

Auto Trait Implementations

impl !Send for Channel

impl !Sync for Channel

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]