pub struct Frame<T>where
T: Framer,{
pub tag: u16,
pub msg: T,
}Fields§
§tag: u16§msg: TTrait Implementations§
Source§impl<P> Sink<Frame<<P as Protocol>::Request>> for IrohTransport<P>
impl<P> Sink<Frame<<P as Protocol>::Request>> for IrohTransport<P>
Source§fn poll_ready(
self: Pin<&mut IrohTransport<P>>,
cx: &mut Context<'_>,
) -> Poll<Result<(), <IrohTransport<P> as Sink<Frame<<P as Protocol>::Request>>>::Error>>
fn poll_ready( self: Pin<&mut IrohTransport<P>>, cx: &mut Context<'_>, ) -> Poll<Result<(), <IrohTransport<P> as Sink<Frame<<P as Protocol>::Request>>>::Error>>
Attempts to prepare the
Sink to receive a value. Read moreSource§fn start_send(
self: Pin<&mut IrohTransport<P>>,
item: Frame<<P as Protocol>::Request>,
) -> Result<(), <IrohTransport<P> as Sink<Frame<<P as Protocol>::Request>>>::Error>
fn start_send( self: Pin<&mut IrohTransport<P>>, item: Frame<<P as Protocol>::Request>, ) -> Result<(), <IrohTransport<P> as Sink<Frame<<P as Protocol>::Request>>>::Error>
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 moreSource§fn poll_flush(
self: Pin<&mut IrohTransport<P>>,
cx: &mut Context<'_>,
) -> Poll<Result<(), <IrohTransport<P> as Sink<Frame<<P as Protocol>::Request>>>::Error>>
fn poll_flush( self: Pin<&mut IrohTransport<P>>, cx: &mut Context<'_>, ) -> Poll<Result<(), <IrohTransport<P> as Sink<Frame<<P as Protocol>::Request>>>::Error>>
Flush any remaining output from this sink. Read more
Source§fn poll_close(
self: Pin<&mut IrohTransport<P>>,
cx: &mut Context<'_>,
) -> Poll<Result<(), <IrohTransport<P> as Sink<Frame<<P as Protocol>::Request>>>::Error>>
fn poll_close( self: Pin<&mut IrohTransport<P>>, cx: &mut Context<'_>, ) -> Poll<Result<(), <IrohTransport<P> as Sink<Frame<<P as Protocol>::Request>>>::Error>>
Flush any remaining output and close this sink, if necessary. Read more
Source§impl<P> Sink<Frame<<P as Protocol>::Request>> for WebSocketTransport<P>
impl<P> Sink<Frame<<P as Protocol>::Request>> for WebSocketTransport<P>
Source§fn poll_ready(
self: Pin<&mut WebSocketTransport<P>>,
_cx: &mut Context<'_>,
) -> Poll<Result<(), <WebSocketTransport<P> as Sink<Frame<<P as Protocol>::Request>>>::Error>>
fn poll_ready( self: Pin<&mut WebSocketTransport<P>>, _cx: &mut Context<'_>, ) -> Poll<Result<(), <WebSocketTransport<P> as Sink<Frame<<P as Protocol>::Request>>>::Error>>
Attempts to prepare the
Sink to receive a value. Read moreSource§fn start_send(
self: Pin<&mut WebSocketTransport<P>>,
item: Frame<<P as Protocol>::Request>,
) -> Result<(), <WebSocketTransport<P> as Sink<Frame<<P as Protocol>::Request>>>::Error>
fn start_send( self: Pin<&mut WebSocketTransport<P>>, item: Frame<<P as Protocol>::Request>, ) -> Result<(), <WebSocketTransport<P> as Sink<Frame<<P as Protocol>::Request>>>::Error>
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 moreSource§fn poll_flush(
self: Pin<&mut WebSocketTransport<P>>,
_cx: &mut Context<'_>,
) -> Poll<Result<(), <WebSocketTransport<P> as Sink<Frame<<P as Protocol>::Request>>>::Error>>
fn poll_flush( self: Pin<&mut WebSocketTransport<P>>, _cx: &mut Context<'_>, ) -> Poll<Result<(), <WebSocketTransport<P> as Sink<Frame<<P as Protocol>::Request>>>::Error>>
Flush any remaining output from this sink. Read more
Source§fn poll_close(
self: Pin<&mut WebSocketTransport<P>>,
_cx: &mut Context<'_>,
) -> Poll<Result<(), <WebSocketTransport<P> as Sink<Frame<<P as Protocol>::Request>>>::Error>>
fn poll_close( self: Pin<&mut WebSocketTransport<P>>, _cx: &mut Context<'_>, ) -> Poll<Result<(), <WebSocketTransport<P> as Sink<Frame<<P as Protocol>::Request>>>::Error>>
Flush any remaining output and close this sink, if necessary. Read more
Source§impl<T> WireFormat for Frame<T>where
T: Framer,
impl<T> WireFormat for Frame<T>where
T: Framer,
Auto Trait Implementations§
impl<T> Freeze for Frame<T>where
T: Freeze,
impl<T> RefUnwindSafe for Frame<T>where
T: RefUnwindSafe,
impl<T> Send for Frame<T>
impl<T> Sync for Frame<T>
impl<T> Unpin for Frame<T>where
T: Unpin,
impl<T> UnwindSafe for Frame<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> AsyncWireFormatExt for Twhere
T: WireFormat + Send,
impl<T> AsyncWireFormatExt for Twhere
T: WireFormat + Send,
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