[][src]Struct fluvio_socket::InnerExclusiveFlvSink

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

Multi-thread aware Sink. Only allow sending request one a time.

Implementations

impl<S> InnerExclusiveFlvSink<S>[src]

pub fn new(sink: InnerFlvSink<S>) -> Self[src]

impl<S> InnerExclusiveFlvSink<S> where
    S: AsyncRead + AsyncWrite + Unpin
[src]

pub async fn lock(&self) -> MutexGuard<'_, InnerFlvSink<S>>[src]

pub async fn send_request<R>(
    &self,
    req_msg: &RequestMessage<R>
) -> Result<(), FlvSocketError> where
    RequestMessage<R>: FlvEncoder + Default + Debug
[src]

pub async fn send_response<P>(
    &mut self,
    resp_msg: &ResponseMessage<P>,
    version: Version
) -> Result<(), FlvSocketError> where
    ResponseMessage<P>: FlvEncoder + Default + Debug
[src]

helper method to send back response

pub fn id(&self) -> RawFd[src]

Trait Implementations

impl<S> Clone for InnerExclusiveFlvSink<S>[src]

Auto Trait Implementations

impl<S> !RefUnwindSafe for InnerExclusiveFlvSink<S>[src]

impl<S> Send for InnerExclusiveFlvSink<S> where
    S: Send
[src]

impl<S> Sync for InnerExclusiveFlvSink<S> where
    S: Send
[src]

impl<S> Unpin for InnerExclusiveFlvSink<S>[src]

impl<S> !UnwindSafe for InnerExclusiveFlvSink<S>[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.