Struct breadx::display::BasicDisplay
source · [−]pub struct BasicDisplay<Conn> { /* private fields */ }
Expand description
An implementation of Display
that requires a mutable reference
to use.
Implementations
sourceimpl<Conn: Connection> BasicDisplay<Conn>
impl<Conn: Connection> BasicDisplay<Conn>
sourcepub fn with_connection(
conn: Conn,
setup: Setup,
default_screen_index: usize
) -> Result<Self>
pub fn with_connection(
conn: Conn,
setup: Setup,
default_screen_index: usize
) -> Result<Self>
Create a new BasicDisplay
from an existing connection and a
Setup
.
sourcepub fn connect_with_auth(
conn: Conn,
default_screen_index: usize,
auth_name: Vec<u8>,
auth_info: Vec<u8>
) -> Result<Self>
pub fn connect_with_auth(
conn: Conn,
default_screen_index: usize,
auth_name: Vec<u8>,
auth_info: Vec<u8>
) -> Result<Self>
Connect to the X11 server, using the given connection and auth information.
Blocking
This function is expected to block, and is not built around not blocking. Using a non-blocking connection with this object will result in a fatal error.
Trait Implementations
sourceimpl<Conn: AsRawFd> AsRawFd for BasicDisplay<Conn>
impl<Conn: AsRawFd> AsRawFd for BasicDisplay<Conn>
sourceimpl<Conn: Connection> CanBeAsyncDisplay for BasicDisplay<Conn>
impl<Conn: Connection> CanBeAsyncDisplay for BasicDisplay<Conn>
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_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_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_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<Conn: Connection> Display for BasicDisplay<Conn>
impl<Conn: Connection> Display for BasicDisplay<Conn>
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_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 wait_for_event(&mut self) -> Result<Event>
fn wait_for_event(&mut self) -> Result<Event>
Wait for an event. 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 check_for_error(&mut self, seq: u64) -> Result<()>
fn check_for_error(&mut self, seq: u64) -> Result<()>
Check for an error for the given sequence number. Read more
sourcefn synchronize(&mut self) -> Result<()>
fn synchronize(&mut self) -> Result<()>
Synchronize this display with the server. Read more
sourceimpl<Conn: Connection> DisplayBase for BasicDisplay<Conn>
impl<Conn: Connection> DisplayBase for BasicDisplay<Conn>
sourcefn default_screen_index(&self) -> usize
fn default_screen_index(&self) -> usize
Get the screen associated with this display. 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 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 default_screen(&self) -> &Screen
fn default_screen(&self) -> &Screen
Get the default screen for this display. Read more
Auto Trait Implementations
impl<Conn> RefUnwindSafe for BasicDisplay<Conn> where
Conn: RefUnwindSafe,
impl<Conn> Send for BasicDisplay<Conn> where
Conn: Send,
impl<Conn> Sync for BasicDisplay<Conn> where
Conn: Sync,
impl<Conn> Unpin for BasicDisplay<Conn> where
Conn: Unpin,
impl<Conn> UnwindSafe for BasicDisplay<Conn> where
Conn: 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