pub struct Connection<C> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<C: Debug> Debug for Connection<C>
impl<C: Debug> Debug for Connection<C>
Source§impl<C: AsyncWriteWithFd> WriteMessage for Connection<C>
impl<C: AsyncWriteWithFd> WriteMessage for Connection<C>
Source§fn poll_ready(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
fn poll_ready(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
Reserve space for a message
Source§fn start_send<M: Serialize + Debug>(
self: Pin<&mut Self>,
object_id: u32,
msg: M,
)
fn start_send<M: Serialize + Debug>( self: Pin<&mut Self>, object_id: u32, msg: M, )
Queue a message to be sent. Read more
Source§fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
Flush connection
fn send<'a, 'b, 'c, M>( &'a mut self, object_id: u32, msg: M, ) -> Send<'c, Self, M> ⓘ
fn flush(&mut self) -> Flush<'_, Self> ⓘwhere
Self: Unpin,
impl<'__pin, C> Unpin for Connection<C>where
PinnedFieldsOf<__Origin<'__pin, C>>: Unpin,
Auto Trait Implementations§
impl<C> Freeze for Connection<C>where
C: Freeze,
impl<C> RefUnwindSafe for Connection<C>where
C: RefUnwindSafe,
impl<C> Send for Connection<C>where
C: Send,
impl<C> Sync for Connection<C>where
C: Sync,
impl<C> UnwindSafe for Connection<C>where
C: UnwindSafe,
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