Struct fluvio_socket::MultiplexerSocket[][src]

pub struct MultiplexerSocket<S> { /* fields omitted */ }

Socket that can multiplex connections

Implementations

impl<S> MultiplexerSocket<S> where
    S: AsyncRead + AsyncWrite + Unpin + Send + Sync + 'static, 
[src]

pub fn shared(socket: InnerFlvSocket<S>) -> Arc<Self>[src]

pub fn new(socket: InnerFlvSocket<S>) -> Self[src]

create new multiplexer socket, this always starts with correlation id of 1 correlation id of 0 means shared

pub async fn send_and_receive<R>(
    &self,
    req_msg: RequestMessage<R>
) -> Result<R::Response, FlvSocketError> where
    R: Request, 
[src]

create socket to perform request and response

pub async fn create_stream<R>(
    &self,
    req_msg: RequestMessage<R>,
    queue_len: usize
) -> Result<AsyncResponse<R>, FlvSocketError> where
    R: Request, 
[src]

create stream response

Trait Implementations

impl<S> Drop for MultiplexerSocket<S>[src]

Auto Trait Implementations

impl<S> !RefUnwindSafe for MultiplexerSocket<S>

impl<S> Send for MultiplexerSocket<S> where
    S: Send

impl<S> Sync for MultiplexerSocket<S> where
    S: Send

impl<S> Unpin for MultiplexerSocket<S>

impl<S> !UnwindSafe for MultiplexerSocket<S>

Blanket Implementations

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

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

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

impl<T> Erased for T

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

impl<T> Instrument 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.