Struct breadx::display::SyncDisplay
source · [−]pub struct SyncDisplay<Dpy: ?Sized> { /* private fields */ }
Expand description
A Display
that uses a mutex to coordinate access.
Trait Implementations
sourceimpl<Dpy: AsyncDisplay + ?Sized> AsyncDisplay for SyncDisplay<Dpy>
impl<Dpy: AsyncDisplay + ?Sized> AsyncDisplay for SyncDisplay<Dpy>
sourceimpl<Dpy: AsyncDisplay + ?Sized> AsyncDisplay for &SyncDisplay<Dpy>
impl<Dpy: AsyncDisplay + ?Sized> AsyncDisplay for &SyncDisplay<Dpy>
sourceimpl<Dpy: CanBeAsyncDisplay + ?Sized> CanBeAsyncDisplay for SyncDisplay<Dpy>
impl<Dpy: CanBeAsyncDisplay + ?Sized> CanBeAsyncDisplay for SyncDisplay<Dpy>
sourcefn format_request(
&mut self,
req: &mut RawRequest<'_, '_>,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<u64>>
fn format_request(
&mut self,
req: &mut RawRequest<'_, '_>,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<u64>>
Partially format the request. Read more
sourcefn try_send_request_raw(
&mut self,
req: &mut RawRequest<'_, '_>,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<()>>
fn try_send_request_raw(
&mut self,
req: &mut RawRequest<'_, '_>,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<()>>
Partially send the request. Read more
sourcefn try_wait_for_event(
&mut self,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<Event>>
fn try_wait_for_event(
&mut self,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<Event>>
Wait for an event. Read more
sourcefn try_wait_for_reply_raw(
&mut self,
seq: u64,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<RawReply>>
fn try_wait_for_reply_raw(
&mut self,
seq: u64,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<RawReply>>
Wait for the reply. Read more
sourcefn try_flush(&mut self, ctx: &mut Context<'_>) -> Result<AsyncStatus<()>>
fn try_flush(&mut self, ctx: &mut Context<'_>) -> Result<AsyncStatus<()>>
Flush the output buffer. Read more
sourcefn try_generate_xid(
&mut self,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<u32>>
fn try_generate_xid(
&mut self,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<u32>>
Generate a unique XID. Read more
sourcefn try_maximum_request_length(
&mut self,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<usize>>
fn try_maximum_request_length(
&mut self,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<usize>>
Get the maximum length of a request that can be sent. Read more
sourcefn try_check_for_error(
&mut self,
seq: u64,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<()>>
fn try_check_for_error(
&mut self,
seq: u64,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<()>>
Try to check for an error.
sourceimpl<Dpy: CanBeAsyncDisplay + ?Sized> CanBeAsyncDisplay for &SyncDisplay<Dpy>
impl<Dpy: CanBeAsyncDisplay + ?Sized> CanBeAsyncDisplay for &SyncDisplay<Dpy>
sourcefn format_request(
&mut self,
req: &mut RawRequest<'_, '_>,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<u64>>
fn format_request(
&mut self,
req: &mut RawRequest<'_, '_>,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<u64>>
Partially format the request. Read more
sourcefn try_send_request_raw(
&mut self,
req: &mut RawRequest<'_, '_>,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<()>>
fn try_send_request_raw(
&mut self,
req: &mut RawRequest<'_, '_>,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<()>>
Partially send the request. Read more
sourcefn try_wait_for_reply_raw(
&mut self,
seq: u64,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<RawReply>>
fn try_wait_for_reply_raw(
&mut self,
seq: u64,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<RawReply>>
Wait for the reply. Read more
sourcefn try_wait_for_event(
&mut self,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<Event>>
fn try_wait_for_event(
&mut self,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<Event>>
Wait for an event. Read more
sourcefn try_flush(&mut self, ctx: &mut Context<'_>) -> Result<AsyncStatus<()>>
fn try_flush(&mut self, ctx: &mut Context<'_>) -> Result<AsyncStatus<()>>
Flush the output buffer. Read more
sourcefn try_generate_xid(
&mut self,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<u32>>
fn try_generate_xid(
&mut self,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<u32>>
Generate a unique XID. Read more
sourcefn try_maximum_request_length(
&mut self,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<usize>>
fn try_maximum_request_length(
&mut self,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<usize>>
Get the maximum length of a request that can be sent. Read more
sourcefn try_check_for_error(
&mut self,
seq: u64,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<()>>
fn try_check_for_error(
&mut self,
seq: u64,
ctx: &mut Context<'_>
) -> Result<AsyncStatus<()>>
Try to check for an error.
sourceimpl<Dpy: Display + ?Sized> Display for SyncDisplay<Dpy>
impl<Dpy: Display + ?Sized> Display for SyncDisplay<Dpy>
sourcefn send_request_raw(&mut self, req: RawRequest<'_, '_>) -> Result<u64>
fn send_request_raw(&mut self, req: RawRequest<'_, '_>) -> Result<u64>
Send a raw request to the X11 server. Read more
sourcefn wait_for_event(&mut self) -> Result<Event>
fn wait_for_event(&mut self) -> Result<Event>
Wait for an event. Read more
sourcefn wait_for_reply_raw(&mut self, seq: u64) -> Result<RawReply>
fn wait_for_reply_raw(&mut self, seq: u64) -> Result<RawReply>
Wait for a reply from the X11 server. Read more
sourcefn generate_xid(&mut self) -> Result<u32>
fn generate_xid(&mut self) -> Result<u32>
Get a unique ID valid for use by the server. Read more
sourcefn maximum_request_length(&mut self) -> Result<usize>
fn maximum_request_length(&mut self) -> Result<usize>
Get the maximum request length that can be sent. Read more
sourcefn synchronize(&mut self) -> Result<()>
fn synchronize(&mut self) -> Result<()>
Synchronize this display with the server. Read more
sourceimpl<Dpy: Display + ?Sized> Display for &SyncDisplay<Dpy>
impl<Dpy: Display + ?Sized> Display for &SyncDisplay<Dpy>
sourcefn send_request_raw(&mut self, req: RawRequest<'_, '_>) -> Result<u64>
fn send_request_raw(&mut self, req: RawRequest<'_, '_>) -> Result<u64>
Send a raw request to the X11 server. Read more
sourcefn wait_for_event(&mut self) -> Result<Event>
fn wait_for_event(&mut self) -> Result<Event>
Wait for an event. Read more
sourcefn wait_for_reply_raw(&mut self, seq: u64) -> Result<RawReply>
fn wait_for_reply_raw(&mut self, seq: u64) -> Result<RawReply>
Wait for a reply from the X11 server. Read more
sourcefn generate_xid(&mut self) -> Result<u32>
fn generate_xid(&mut self) -> Result<u32>
Get a unique ID valid for use by the server. Read more
sourcefn maximum_request_length(&mut self) -> Result<usize>
fn maximum_request_length(&mut self) -> Result<usize>
Get the maximum request length that can be sent. Read more
sourcefn synchronize(&mut self) -> Result<()>
fn synchronize(&mut self) -> Result<()>
Synchronize this display with the server. Read more
sourceimpl<Dpy: DisplayBase + ?Sized> DisplayBase for SyncDisplay<Dpy>
impl<Dpy: DisplayBase + ?Sized> DisplayBase for SyncDisplay<Dpy>
sourcefn default_screen_index(&self) -> usize
fn default_screen_index(&self) -> usize
Get the screen associated with this display. Read more
sourcefn poll_for_event(&mut self) -> Result<Option<Event>>
fn poll_for_event(&mut self) -> Result<Option<Event>>
Poll to see if we have received an event. Read more
sourcefn poll_for_reply_raw(&mut self, seq: u64) -> Result<Option<RawReply>>
fn poll_for_reply_raw(&mut self, seq: u64) -> Result<Option<RawReply>>
Poll to see if a reply matching the sequence number has been received. Read more
sourcefn default_screen(&self) -> &Screen
fn default_screen(&self) -> &Screen
Get the default screen for this display. Read more
sourceimpl<Dpy: DisplayBase + ?Sized> DisplayBase for &SyncDisplay<Dpy>
impl<Dpy: DisplayBase + ?Sized> DisplayBase for &SyncDisplay<Dpy>
sourcefn default_screen_index(&self) -> usize
fn default_screen_index(&self) -> usize
Get the screen associated with this display. Read more
sourcefn poll_for_event(&mut self) -> Result<Option<Event>>
fn poll_for_event(&mut self) -> Result<Option<Event>>
Poll to see if we have received an event. Read more
sourcefn poll_for_reply_raw(&mut self, seq: u64) -> Result<Option<RawReply>>
fn poll_for_reply_raw(&mut self, seq: u64) -> Result<Option<RawReply>>
Poll to see if a reply matching the sequence number has been received. Read more
sourcefn default_screen(&self) -> &Screen
fn default_screen(&self) -> &Screen
Get the default screen for this display. Read more
sourceimpl<Dpy: DisplayBase> From<Dpy> for SyncDisplay<Dpy>
impl<Dpy: DisplayBase> From<Dpy> for SyncDisplay<Dpy>
Auto Trait Implementations
impl<Dpy> !RefUnwindSafe for SyncDisplay<Dpy>
impl<Dpy: ?Sized> Send for SyncDisplay<Dpy> where
Dpy: Send,
impl<Dpy: ?Sized> Sync for SyncDisplay<Dpy> where
Dpy: Send,
impl<Dpy: ?Sized> Unpin for SyncDisplay<Dpy> where
Dpy: Unpin,
impl<Dpy: ?Sized> UnwindSafe for SyncDisplay<Dpy> where
Dpy: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more