Trait breadx::display::AsyncConnection [−][src]
pub trait AsyncConnection {
fn poll_send_packet(
&mut self,
bytes: &[u8],
fds: &mut Vec<Fd>,
cx: &mut Context<'_>,
bytes_written: &mut usize
) -> Poll<Result>;
fn poll_read_packet(
&mut self,
bytes: &mut [u8],
fds: &mut Vec<Fd>,
cx: &mut Context<'_>,
bytes_read: &mut usize
) -> Poll<Result>;
fn establish_async(
&mut self,
auth_info: Option<AuthInfo>
) -> EstablishConnectionFuture<'_, Self>ⓘNotable traits for EstablishConnectionFuture<'a, C>
impl<'a, C: AsyncConnection + Unpin + ?Sized> Future for EstablishConnectionFuture<'a, C> type Output = Result<(StaticSetup, XidGenerator)>; { ... }
}Expand description
Asynchronous breadx connection.
Required methods
Send a packet across the connection in an async manner.
Provided methods
fn establish_async(
&mut self,
auth_info: Option<AuthInfo>
) -> EstablishConnectionFuture<'_, Self>ⓘNotable traits for EstablishConnectionFuture<'a, C>
impl<'a, C: AsyncConnection + Unpin + ?Sized> Future for EstablishConnectionFuture<'a, C> type Output = Result<(StaticSetup, XidGenerator)>;
fn establish_async(
&mut self,
auth_info: Option<AuthInfo>
) -> EstablishConnectionFuture<'_, Self>ⓘNotable traits for EstablishConnectionFuture<'a, C>
impl<'a, C: AsyncConnection + Unpin + ?Sized> Future for EstablishConnectionFuture<'a, C> type Output = Result<(StaticSetup, XidGenerator)>;Establish a connection to the server.