Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bread-graphics/breadx
/ functions
Functions
486 in github.com/bread-graphics/breadx
⨍
Functions
486
◇
Types & classes
96
↓ 139 callers
Method
unwrap
Unwrap the `AsyncStatus`, returning the inner value or panicking otherwise. # Panics Panics if the `AsyncStatus` is not `Ready`.
breadx/src/display/mod.rs:358
↓ 57 callers
Method
map
Maps the `AsyncStatus` from one type to another, if the `AsyncStatus` is `Ready`.
breadx/src/display/mod.rs:343
↓ 44 callers
Method
get_mut
Get a mutable reference to the underlying connection. ## Example ```rust,no_run use breadx::connection::{Connection, StdConnection}; use std::net::T
breadx/src/connection/std_wrapper.rs:162
↓ 33 callers
Function
find_attribute
( start: &'a BytesStart, name: &[u8], reader: &mut Reader<B>, )
xcb_parser/src/lib.rs:251
↓ 31 callers
Method
name
(&self)
xcb_parser/src/toplevel.rs:52
↓ 29 callers
Method
len
Get the total amount of data.
breadx/src/display/raw_request.rs:228
↓ 28 callers
Method
get_ref
Get a reference to the underlying connection. ## Example ```rust,no_run use breadx::connection::{Connection, StdConnection}; use std::net::TcpStream
breadx/src/connection/std_wrapper.rs:142
↓ 25 callers
Function
read_start_event
(reader: &mut Reader<impl BufRead>)
xcb_parser/src/lib.rs:237
↓ 22 callers
Method
wait_for_reply
Receive a reply from the server.
breadx/src/display/ext.rs:78
↓ 20 callers
Method
push
(&self, waker: &Waker)
breadx/src/display/sync.rs:143
↓ 17 callers
Method
default_screen
Get the default screen for this display. This is equivalent to `self.setup().roots[self.default_screen_index()]`.
breadx/src/display/mod.rs:192
↓ 13 callers
Method
generate_xid
(&mut self)
breadx/src/display/sans_io.rs:123
↓ 12 callers
Method
borrow_mut
(&mut self)
breadx/src/connection/sendmsg.rs:79
↓ 12 callers
Function
cvt_point
Convert a floating point into a fixed point.
breadx/examples/xclock.rs:681
↓ 12 callers
Method
flush
(&mut self)
breadx/src/name/mod.rs:330
↓ 12 callers
Function
read_text_or_cdata
(reader: &mut Reader<B>)
xcb_parser/src/lib.rs:224
↓ 11 callers
Method
clone
(&self)
breadx/src/display/cookie.rs:21
↓ 10 callers
Method
copied
(self)
breadx/src/display/mod.rs:377
↓ 10 callers
Method
with_inner_mut
(&mut self, f: impl FnOnce(&mut Dpy) -> R)
breadx/src/display/sync.rs:81
↓ 9 callers
Method
as_ref
(&self)
breadx/src/connection/sendmsg.rs:61
↓ 9 callers
Function
camel_case_name
Copied from the x11rb generator
breadx-generator/src/items.rs:511
↓ 9 callers
Method
is_empty
(&self)
breadx/src/display/raw_request.rs:237
↓ 9 callers
Method
send_request_raw
(&mut self, req: RawRequest<'_, '_>)
breadx/src/display/mod.rs:555
↓ 9 callers
Method
take
(&mut self, f: impl FnOnce(RawRequest<'_, '_>) -> Ret)
breadx/src/display/raw_request.rs:287
↓ 8 callers
Method
with_inner
(&self, f: impl FnOnce(&mut Dpy) -> R)
breadx/src/display/sync.rs:73
↓ 7 callers
Function
connect
# Panics Panics if `tokio` fails to join the blocking task used to compute authorization details.
breadx/src/rt_support/tokio_support.rs:139
↓ 7 callers
Function
setup_tracing
()
breadx/src/utils/test.rs:10
↓ 7 callers
Function
with_test_connection
( read_bytes: &[u8], read_fds: Vec<i32>, test: impl FnOnce(TestConnection<'_>), asserts: impl
breadx/src/connection/test.rs:109
↓ 6 callers
Method
find
Utility function to find an extension that matches a closure.
breadx/src/display/extension_map.rs:54
↓ 6 callers
Function
from_reply_request
Create a new `RawRequest` from a `ReplyRequest` type.
breadx/src/display/raw_request.rs:92
↓ 6 callers
Method
into_iter
Get an iterator over the replies of this request.
breadx/src/mutlireply.rs:45
↓ 5 callers
Method
advance
Advance this request by the given number of bytes.
breadx/src/display/raw_request.rs:248
↓ 5 callers
Method
as_raw_fd
(&self)
breadx/src/connection/sendmsg.rs:43
↓ 5 callers
Method
wait_for_reply_raw
(&mut self, seq: u64)
breadx/src/display/mod.rs:563
↓ 5 callers
Method
with
Run a poison-aware operation on the inner value.
breadx/src/display/poison.rs:16
↓ 5 callers
Method
would_block
Tell if this is a would-block I/O error.
breadx/src/error.rs:187
↓ 4 callers
Method
acopied
(self)
breadx/src/utils/mod.rs:44
↓ 4 callers
Method
flush
(&mut self)
breadx/src/connection/buffered.rs:526
↓ 4 callers
Method
format
(&mut self, ext_opcode: Option<u8>, max_len: usize)
breadx/src/display/raw_request.rs:172
↓ 4 callers
Method
get_if_resolved
Get the target if and only if this prefetch has already resolved.
breadx/src/display/prefetch.rs:78
↓ 4 callers
Method
into_inner
Unwrap this newtype to get the underlying connection. ## Example ```rust,no_run use breadx::connection::{Connection, StdConnection}; use std::net::T
breadx/src/connection/std_wrapper.rs:120
↓ 4 callers
Method
into_reply
(mut self)
breadx/src/display/raw_request.rs:396
↓ 4 callers
Method
next
(&mut self)
breadx/src/mutlireply.rs:87
↓ 4 callers
Function
one
(item: T)
breadx/src/name/nb_connect.rs:180
↓ 4 callers
Method
prefetch
( &mut self, display: &mut BasicDisplay<Conn>, prefetch: &'p mut Prefetch<
breadx/src/display/basic.rs:746
↓ 4 callers
Method
release
(&self)
breadx/src/display/sync.rs:147
↓ 4 callers
Function
spawn_close_thread
Connect to the server and send a close signal to the main window after the given amount of time.
breadx/examples/util/cancel.rs:45
↓ 4 callers
Function
spawn_kill_thread
Spawns the thread that kills the entire program.
breadx/examples/util/cancel.rs:24
↓ 3 callers
Method
flush_write_buffer
Flush the `WriteBuffer` to the underlying connection. This will flush the `WriteBuffer` to the underlying connection, and then clear the `WriteBuffer
breadx/src/connection/buffered.rs:212
↓ 3 callers
Function
from_reply_fds_request
Create a new `RawRequest` from a `ReplyFDsRequest` type.
breadx/src/display/raw_request.rs:100
↓ 3 callers
Function
from_request
( request: R, variant: ReplyFdKind, discard_reply: bool, f: impl FnOnce(RawRequest<'_, '_>) ->
breadx/src/display/raw_request.rs:55
↓ 3 callers
Function
from_void_request
Create a new `RawRequest` from a `VoidRequest` type.
breadx/src/display/raw_request.rs:83
↓ 3 callers
Method
get
(&self, name: &'static str)
breadx/src/display/extension_map.rs:31
↓ 3 callers
Function
pair
()
breadx/src/connection/std_wrapper.rs:493
↓ 3 callers
Method
raw_request
Indicate that the client should send a raw request.
breadx/src/display/tests/sequencing.rs:61
↓ 3 callers
Method
readable_slice
Get the slice of the `ReadBuffer` that has already been read and contains valid information
breadx/src/connection/buffered.rs:539
↓ 3 callers
Method
recv_slice
(&mut self, slice: &mut [u8])
breadx/src/name/mod.rs:326
↓ 3 callers
Method
recv_slice_impl
( &mut self, slice: &mut [u8], fds: Option<&mut Vec<Fd>>, mut read_handler: im
breadx/src/connection/buffered.rs:382
↓ 3 callers
Method
recv_slices_and_fds
( &mut self, slices: &mut [IoSliceMut<'_>], fds: &mut Vec<Fd>, )
breadx/src/connection/buffered.rs:444
↓ 3 callers
Method
send_slice
(&mut self, slice: &[u8])
breadx/src/name/mod.rs:318
↓ 3 callers
Method
sequence
(self)
breadx/src/display/cookie.rs:81
↓ 3 callers
Method
spare_capacity
Get the spare capacity of the buffer.
breadx/src/connection/buffered.rs:584
↓ 3 callers
Method
spawn
Spawns the function on the thread pool, if we haven't already.
breadx/src/utils/unblock.rs:70
↓ 3 callers
Function
try_io
( mut guard: AsyncFdReadyMutGuard<'_, C>, f: impl FnOnce(&mut C) -> Result<R>, blocked: impl FnOnc
breadx/src/rt_support/tokio_support.rs:257
↓ 3 callers
Method
try_parse_error
(&self, err: Vec<u8>, ext_info: &dyn ExtInfoProvider)
breadx/src/display/sans_io.rs:50
↓ 3 callers
Method
wait_for_event
(&mut self)
breadx/src/display/mod.rs:559
↓ 2 callers
Method
advance_write
Indicate that we've read `n` bytes from the connection into the buffer.
breadx/src/connection/buffered.rs:549
↓ 2 callers
Function
always_available
(name: &str)
breadx-generator/src/main.rs:231
↓ 2 callers
Method
as_mut
(&mut self)
breadx/src/connection/sendmsg.rs:67
↓ 2 callers
Method
borrow
(&self)
breadx/src/connection/sendmsg.rs:73
↓ 2 callers
Function
build_request
(item: &mut impl Write, struct_name: &str, header: &Header, params: &[Parameter])
breadx-generator/src/items.rs:227
↓ 2 callers
Method
cannibalize
Destroys this object and returns the inner `Dpy` reference.
breadx/src/futures/try_with.rs:52
↓ 2 callers
Method
capacity
Get the total capacity of the buffer.
breadx/src/connection/buffered.rs:589
↓ 2 callers
Function
cfg_flag
(header: &Header, target: &mut impl Write)
breadx-generator/src/items.rs:465
↓ 2 callers
Method
check_for_error
Check to see if this sequence number has errored out. Returns `true` if the sequence number is ready. Returns an error if it's errored out.
breadx/src/display/sans_io.rs:89
↓ 2 callers
Method
connect
(self)
breadx/src/name/nb_connect.rs:197
↓ 2 callers
Function
const_len
(expr: &Expression)
breadx-generator/src/items.rs:503
↓ 2 callers
Method
copy_into_slice
Copy from the read buffer into the given slice.
breadx/src/connection/buffered.rs:310
↓ 2 callers
Method
copy_slice_to_buffer
Copy the slice of data into our write buffer.
breadx/src/connection/buffered.rs:235
↓ 2 callers
Function
create_cookie
(item: &mut String, fncall_to_use: &'static str, mode: Mode, immediate_fn: bool)
breadx-generator/src/items.rs:204
↓ 2 callers
Function
create_window_mask
Create a new picture to be used as a mask.
breadx/examples/xclock.rs:349
↓ 2 callers
Function
cvt_line
Given a line and a width, create a trapezoid able to represent that line in rendering.
breadx/examples/xclock.rs:649
↓ 2 callers
Method
extension
(&self)
breadx/src/display/raw_request.rs:223
↓ 2 callers
Function
f32_to_fixed
Convert a float (`f32`) to an X11 fixed value.
breadx/examples/xclock.rs:689
↓ 2 callers
Method
fetch_event
Get the latest event from the server, using the given strategy.
breadx/src/display/basic.rs:261
↓ 2 callers
Method
fetch_reply
Get a reply for the given sequence number from the server, using the given strategy.
breadx/src/display/basic.rs:238
↓ 2 callers
Function
fnname
(header: &Header, req: &Request)
breadx-generator/src/items.rs:341
↓ 2 callers
Function
generate_item
(header: &Header, item: &ToplevelItem, mode: Mode)
breadx-generator/src/items.rs:21
↓ 2 callers
Method
get_address
Get the peer address and family used in this connection. This is useful, since the `xauth` interface requires the family and address to be known.
breadx/src/name/mod.rs:156
↓ 2 callers
Function
hand_triangle
Get a triangle that could be used to represent a hand of a clock.
breadx/examples/xclock.rs:599
↓ 2 callers
Function
initialization
Indicates that any errors that occur during execution of this function are initialization errors.
breadx/src/error.rs:482
↓ 2 callers
Method
mut_parts
(&mut self)
breadx/src/display/raw_request.rs:243
↓ 2 callers
Function
poll_ready
(a: &Async<D>, interest: Interest, ctx: &mut Context<'_>)
breadx/src/rt_support/async_std_support.rs:116
↓ 2 callers
Function
read_xcb_from_file
(path: P)
xcb_parser/src/lib.rs:103
↓ 2 callers
Method
readable
(&self)
breadx/src/connection/buffered.rs:543
↓ 2 callers
Method
recv_slice
(&mut self, slice: &mut [u8])
breadx/src/connection/mod.rs:304
↓ 2 callers
Method
recv_slices_and_fds
( &mut self, slices: &mut [IoSliceMut<'_>], fds: &mut Vec<Fd>, )
breadx/src/connection/mod.rs:292
↓ 2 callers
Method
recv_slices_and_fds
( &mut self, buffer: &mut [IoSliceMut<'_>], fds: &mut Vec<Fd>, )
breadx/src/connection/test.rs:73
↓ 2 callers
Method
recv_slices_impl
( &mut self, slices: &mut [IoSliceMut<'_>], fds: &mut Vec<Fd>, mut read_handle
breadx/src/connection/buffered.rs:332
↓ 2 callers
Method
send_slices
(&mut self, slices: &[IoSlice<'_>])
breadx/src/connection/mod.rs:284
next →
1–100 of 486, ranked by callers