Trait breadx::display::AsyncDisplayExt [−][src]
pub trait AsyncDisplayExt: AsyncDisplay { fn wait_async(&mut self) -> WaitFuture<'_, Self>ⓘ; fn send_request_raw_async(Notable traits for WaitFuture<'a, D>
impl<'a, D: AsyncDisplay + ?Sized> Future for WaitFuture<'a, D> type Output = Result;
&mut self,
req: RequestInfo
) -> SendRequestRawFuture<'_, Self>ⓘ; fn send_request_async<R: Request>(Notable traits for SendRequestRawFuture<'a, D>
impl<'a, D: AsyncDisplay + ?Sized> Future for SendRequestRawFuture<'a, D> type Output = Result<u16>;
&mut self,
request: R
) -> SendRequestFuture<'_, Self, R>ⓘ; fn resolve_request_async<R: Request>(Notable traits for SendRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request + Unpin> Future for SendRequestFuture<'a, D, R> type Output = Result<RequestCookie<R>>;
&mut self,
token: RequestCookie<R>
) -> ResolveRequestFuture<'_, Self, R>ⓘNotable traits for ResolveRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request> Future for ResolveRequestFuture<'a, D, R> where
R::Reply: Default, type Output = Result<R::Reply>;
where
R::Reply: Default; fn synchronize_async(&mut self) -> SynchronizeFuture<'_, Self>ⓘ; fn resolve_request_raw_async(Notable traits for SynchronizeFuture<'a, D>
impl<'a, D: AsyncDisplay + ?Sized> Future for SynchronizeFuture<'a, D> type Output = Result;
&mut self,
req_id: u16
) -> ResolveRequestRawFuture<'_, Self>; fn wait_for_event_async(&mut self) -> WaitForEventFuture<'_, Self>; fn wait_for_special_event_async(
&mut self,
xid: XID
) -> WaitForSpecialEventFuture<'_, Self>; fn exchange_request_async<R: Request>(
&mut self,
request: R
) -> ExchangeRequestFuture<'_, Self, R>ⓘ; fn exchange_xid_async<R: Request, U: XidType + Unpin, F: FnOnce(U) -> R>(Notable traits for ExchangeRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request + Unpin + 'a> Future for ExchangeRequestFuture<'a, D, R> where
R::Reply: Default + Unpin, type Output = Result<R::Reply>;
&mut self,
to_request: F
) -> ExchangeXidFuture<'_, Self, R, U, F>ⓘ; }
Expand description
Monomorphized methods we can’t put into the AsyncDisplay trait proper.
Required methods
fn wait_async(&mut self) -> WaitFuture<'_, Self>ⓘNotable traits for WaitFuture<'a, D>
impl<'a, D: AsyncDisplay + ?Sized> Future for WaitFuture<'a, D> type Output = Result;
fn wait_async(&mut self) -> WaitFuture<'_, Self>ⓘNotable traits for WaitFuture<'a, D>
impl<'a, D: AsyncDisplay + ?Sized> Future for WaitFuture<'a, D> type Output = Result;Wait until we recieve data.
This future is essentially a wrapper around the poll_wait function, and is the asynchronous
equivalent to the Display::wait function. See that function for more information on what this future
is expected to return.
fn send_request_raw_async(
&mut self,
req: RequestInfo
) -> SendRequestRawFuture<'_, Self>ⓘNotable traits for SendRequestRawFuture<'a, D>
impl<'a, D: AsyncDisplay + ?Sized> Future for SendRequestRawFuture<'a, D> type Output = Result<u16>;
fn send_request_raw_async(
&mut self,
req: RequestInfo
) -> SendRequestRawFuture<'_, Self>ⓘNotable traits for SendRequestRawFuture<'a, D>
impl<'a, D: AsyncDisplay + ?Sized> Future for SendRequestRawFuture<'a, D> type Output = Result<u16>;Send a raw request to the server.
This future is essentially a wrapper around the begin_send_request_raw and poll_send_request_raw
functions, and is the asynchronous equivalent to the Display::send_request_raw function. See that
function for more information on what it is expected to do and return.
fn send_request_async<R: Request>(
&mut self,
request: R
) -> SendRequestFuture<'_, Self, R>ⓘNotable traits for SendRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request + Unpin> Future for SendRequestFuture<'a, D, R> type Output = Result<RequestCookie<R>>;
fn send_request_async<R: Request>(
&mut self,
request: R
) -> SendRequestFuture<'_, Self, R>ⓘNotable traits for SendRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request + Unpin> Future for SendRequestFuture<'a, D, R> type Output = Result<RequestCookie<R>>;Send a request to the server. This is the async equivalent of the DisplayExt::send_request function.
See that function for more information on what this is expected to do.
fn resolve_request_async<R: Request>(
&mut self,
token: RequestCookie<R>
) -> ResolveRequestFuture<'_, Self, R>ⓘNotable traits for ResolveRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request> Future for ResolveRequestFuture<'a, D, R> where
R::Reply: Default, type Output = Result<R::Reply>; where
R::Reply: Default,
fn resolve_request_async<R: Request>(
&mut self,
token: RequestCookie<R>
) -> ResolveRequestFuture<'_, Self, R>ⓘNotable traits for ResolveRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request> Future for ResolveRequestFuture<'a, D, R> where
R::Reply: Default, type Output = Result<R::Reply>; where
R::Reply: Default, Resolve a request that we sent to the server. This is the async equivalent of the
DisplayExt::resolve_request function. See that function for more information on what this is expected
to do.
fn synchronize_async(&mut self) -> SynchronizeFuture<'_, Self>ⓘNotable traits for SynchronizeFuture<'a, D>
impl<'a, D: AsyncDisplay + ?Sized> Future for SynchronizeFuture<'a, D> type Output = Result;
fn synchronize_async(&mut self) -> SynchronizeFuture<'_, Self>ⓘNotable traits for SynchronizeFuture<'a, D>
impl<'a, D: AsyncDisplay + ?Sized> Future for SynchronizeFuture<'a, D> type Output = Result;Synchronize this display so that every request that has been sent is resolved. This is the async
equivalent of the Display::synchronize function. See that function for more information on what this
is expected to do.
fn resolve_request_raw_async(
&mut self,
req_id: u16
) -> ResolveRequestRawFuture<'_, Self>
fn resolve_request_raw_async(
&mut self,
req_id: u16
) -> ResolveRequestRawFuture<'_, Self>Resolve for a raw request. This is the async equivalent of the Display::resolve_request_raw
function. See that function for more information on what this is expected to do.
fn wait_for_event_async(&mut self) -> WaitForEventFuture<'_, Self>
fn wait_for_event_async(&mut self) -> WaitForEventFuture<'_, Self>Wait for an event to be sent from the X server. This is the async equivalent of the
Display::wait_for_event function. See that function for more information on what this is expected
to do.
fn wait_for_special_event_async(
&mut self,
xid: XID
) -> WaitForSpecialEventFuture<'_, Self>
fn wait_for_special_event_async(
&mut self,
xid: XID
) -> WaitForSpecialEventFuture<'_, Self>Wait for a special event to be sent from the X server. This is the async equivalent of the
Display::wait_for_special_event function. See that function for more information on what this is
expected to do.
fn exchange_request_async<R: Request>(
&mut self,
request: R
) -> ExchangeRequestFuture<'_, Self, R>ⓘNotable traits for ExchangeRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request + Unpin + 'a> Future for ExchangeRequestFuture<'a, D, R> where
R::Reply: Default + Unpin, type Output = Result<R::Reply>;
fn exchange_request_async<R: Request>(
&mut self,
request: R
) -> ExchangeRequestFuture<'_, Self, R>ⓘNotable traits for ExchangeRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request + Unpin + 'a> Future for ExchangeRequestFuture<'a, D, R> where
R::Reply: Default + Unpin, type Output = Result<R::Reply>;Send a request and wait for a reply back. This is the async equivalent of the
DisplayExt::exchange_request function. See that function for more information on what this is
expected to do.
fn exchange_xid_async<R: Request, U: XidType + Unpin, F: FnOnce(U) -> R>(
&mut self,
to_request: F
) -> ExchangeXidFuture<'_, Self, R, U, F>ⓘ
fn exchange_xid_async<R: Request, U: XidType + Unpin, F: FnOnce(U) -> R>(
&mut self,
to_request: F
) -> ExchangeXidFuture<'_, Self, R, U, F>ⓘSend a no-op request to the server, but resolve for an XID. This is similar to exchange_request_async,
but generates an XID before beginning the request send. This is largely a convenience wrapper.