pub struct WebSocketSinkItem<C: CommunicableTypes> { /* private fields */ }Trait Implementations§
Source§impl<C> Sink<WebSocketSinkItem<C>> for WebSocketClient<C>where
C: CommunicableTypes,
impl<C> Sink<WebSocketSinkItem<C>> for WebSocketClient<C>where
C: CommunicableTypes,
Source§type Error = WebSocketClientError<<C as CommunicableTypes>::Req, <C as CommunicableTypes>::Resp>
type Error = WebSocketClientError<<C as CommunicableTypes>::Req, <C as CommunicableTypes>::Resp>
The type of value produced by the sink when an error occurs.
Source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
Sink to receive a value. Read moreSource§fn start_send(
self: Pin<&mut Self>,
item: WebSocketSinkItem<C>,
) -> Result<(), WebSocketClientError<C::Req, C::Resp>>
fn start_send( self: Pin<&mut Self>, item: WebSocketSinkItem<C>, ) -> Result<(), WebSocketClientError<C::Req, C::Resp>>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready which returned Poll::Ready(Ok(())). Read moreAuto Trait Implementations§
impl<C> Freeze for WebSocketSinkItem<C>where
<C as CommunicableTypes>::Req: Freeze,
impl<C> !RefUnwindSafe for WebSocketSinkItem<C>
impl<C> Send for WebSocketSinkItem<C>
impl<C> Sync for WebSocketSinkItem<C>
impl<C> Unpin for WebSocketSinkItem<C>where
<C as CommunicableTypes>::Req: Unpin,
impl<C> !UnwindSafe for WebSocketSinkItem<C>
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