Struct fluvio_socket::ExclusiveFlvSink [−][src]
pub struct ExclusiveFlvSink { /* fields omitted */ }
Expand description
Multi-thread aware Sink. Only allow sending request one a time.
Implementations
impl ExclusiveFlvSink
[src]
impl ExclusiveFlvSink
[src]pub fn new(sink: FluvioSink) -> Self
[src]
impl ExclusiveFlvSink
[src]
impl ExclusiveFlvSink
[src]pub async fn lock(&self) -> MutexGuard<'_, FluvioSink>
[src]
pub async fn send_request<R>(
&self,
req_msg: &RequestMessage<R>
) -> Result<(), FlvSocketError> where
RequestMessage<R>: FlvEncoder + Default + Debug,
[src]
&self,
req_msg: &RequestMessage<R>
) -> Result<(), FlvSocketError> where
RequestMessage<R>: FlvEncoder + Default + Debug,
pub async fn send_response<P>(
&mut self,
resp_msg: &ResponseMessage<P>,
version: Version
) -> Result<(), FlvSocketError> where
ResponseMessage<P>: 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) -> ConnectionFd
[src]
Trait Implementations
impl Clone for ExclusiveFlvSink
[src]
impl Clone for ExclusiveFlvSink
[src]Auto Trait Implementations
impl !RefUnwindSafe for ExclusiveFlvSink
impl Send for ExclusiveFlvSink
impl Sync for ExclusiveFlvSink
impl Unpin for ExclusiveFlvSink
impl !UnwindSafe for ExclusiveFlvSink
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> AsyncConnector for T where
T: Send + Sync,
[src]
T: Send + Sync,