Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Smithay/wayland-rs
/ functions
Functions
759 in github.com/Smithay/wayland-rs
⨍
Functions
759
◇
Types & classes
240
↓ 183 callers
Method
handle
Retrieve a [`DisplayHandle`] for this [`Display`]. This is the type with which all of your interactions with the Wayland protocol are done.
wayland-server/src/display.rs:50
↓ 144 callers
Method
clone
(&self)
wayland-client/src/event_queue.rs:589
↓ 83 callers
Method
clone
(&self)
wayland-backend/src/rs/server_impl/mod.rs:110
↓ 76 callers
Function
roundtrip
( client: &mut TestClient<CD>, server: &mut TestServer<SD>, client_ddata: &mut CD, server_ddat
wayland-tests/tests/helpers/mod.rs:71
↓ 55 callers
Method
clone
(&self)
wayland-backend/src/types/client.rs:45
↓ 40 callers
Method
get_registry
( &self, qh: &QueueHandle<D>, udata: U, )
wayland-scanner/tests/scanner_assets/test-client-code.rs:296
↓ 39 callers
Method
load
Load a cursor theme from system defaults. Same as calling the following: ``` # use wayland_cursor::CursorTheme; # use wayland_client::{Connection, ba
wayland-cursor/src/lib.rs:96
↓ 31 callers
Method
add_client
(&mut self)
wayland-tests/tests/helpers/mod.rs:43
↓ 29 callers
Method
upgrade
Try to upgrade with weak handle back into a full resource. This will fail if either: - the object represented by this handle has already been destroy
wayland-server/src/lib.rs:288
↓ 28 callers
Function
same_interface
(a: &'static Interface, b: &'static Interface)
wayland-backend/src/protocol.rs:265
↓ 19 callers
Method
object_info
Access the protocol information for a Wayland object Returns an error if the object is no longer valid.
wayland-server/src/display.rs:167
↓ 19 callers
Function
snake_to_camel
(input: &str)
wayland-scanner/src/util.rs:79
↓ 18 callers
Method
as_raw_fd
(&self)
wayland-backend/src/rs/socket.rs:98
↓ 18 callers
Method
is_null
Returns whether this object is a null object. Note:** This is not the same as checking if the ID is still valid, which cannot be done without the [`B
wayland-backend/src/server_api.rs:150
↓ 16 callers
Method
with
Mutably access an object of the map
wayland-backend/src/rs/map.rs:88
↓ 14 callers
Method
find
Find an object in the store
wayland-backend/src/rs/map.rs:38
↓ 14 callers
Method
init
Initialize an object by assigning it its user-data
wayland-server/src/dispatch.rs:161
↓ 14 callers
Method
send_request
(&self, req: Self::Request<'_>)
wayland-scanner/tests/scanner_assets/test-client-code.rs:160
↓ 13 callers
Method
id
The underlying [`ObjectId`]
wayland-server/src/lib.rs:297
↓ 13 callers
Method
is_null
(&self)
wayland-backend/src/sys/client_impl/mod.rs:87
↓ 13 callers
Method
map_fd
(self, f: &mut impl FnMut(Fd) -> T)
wayland-backend/src/protocol.rs:87
↓ 12 callers
Method
downgrade
Creates a weak handle to this object This weak handle will not keep the user-data associated with the object alive, and can be converted back to a fu
wayland-server/src/lib.rs:234
↓ 12 callers
Method
get_client_mut
( &mut self, id: InnerClientId, )
wayland-backend/src/rs/server_impl/client.rs:703
↓ 12 callers
Method
get_object_data
Access the object data associated with this object This is intended to be a low-level method. See [`Resource::object_data()`], for a more convenient
wayland-server/src/display.rs:197
↓ 12 callers
Method
id
(&self)
wayland-scanner/tests/scanner_assets/test-client-code.rs:143
↓ 12 callers
Method
is_null
(&self)
wayland-backend/src/sys/server_impl/mod.rs:88
↓ 10 callers
Method
lock_protocol
(&self)
wayland-backend/src/rs/client_impl/mod.rs:116
↓ 10 callers
Method
post_display_error
(&mut self, code: DisplayError, message: CString)
wayland-backend/src/rs/server_impl/client.rs:246
↓ 8 callers
Function
byte
Get the byte at offset idx, or a default of `b'\0'` if we're looking past the end of the input buffer.
wayland-scanner/src/token.rs:9
↓ 8 callers
Method
get_client
(&self, id: InnerObjectId)
wayland-backend/src/rs/server_impl/handle.rs:120
↓ 8 callers
Method
version
(&self)
wayland-scanner/tests/scanner_assets/test-client-code.rs:147
↓ 7 callers
Method
add_client_with_data
( &mut self, data: Arc<dyn ways::backend::ClientData>, )
wayland-tests/tests/helpers/mod.rs:33
↓ 7 callers
Method
backend
(&self)
wayland-scanner/tests/scanner_assets/test-client-code.rs:157
↓ 7 callers
Method
data_as_any
(&self)
wayland-client/src/globals.rs:358
↓ 7 callers
Function
decode_utf8_or_panic
(txt: Vec<u8>)
wayland-scanner/src/parse.rs:37
↓ 7 callers
Method
display
Get the `WlDisplay` associated with this connection
wayland-client/src/conn.rs:103
↓ 7 callers
Method
flush
Flush pending outgoing events to the server This needs to be done regularly to ensure the server receives all your requests, though several dispatchi
wayland-client/src/conn.rs:127
↓ 7 callers
Method
get_client
Retrieve the [`Client`] which owns the object represented by the given ID
wayland-server/src/display.rs:115
↓ 7 callers
Method
insert_at
Insert given object for given id Can fail if the requested id is not the next free id of this store. (In which case this is a protocol error)
wayland-backend/src/rs/map.rs:67
↓ 7 callers
Method
interface
()
wayland-scanner/tests/scanner_assets/test-client-code.rs:139
↓ 7 callers
Function
parse_description
(reader: &mut Reader<R>, attrs: Attributes)
wayland-scanner/src/parse.rs:147
↓ 7 callers
Function
parse_or_panic
(txt: &[u8])
wayland-scanner/src/parse.rs:44
↓ 7 callers
Method
send_constructor
( &self, req: Self::Request<'_>, data: Arc<dyn ObjectData>, )
wayland-scanner/tests/scanner_assets/test-client-code.rs:166
↓ 7 callers
Method
store_and_return_error
(&mut self, err: impl Into<WaylandError>)
wayland-backend/src/rs/client_impl/mod.rs:519
↓ 7 callers
Function
to_doc_attr
(text: &str)
wayland-scanner/src/util.rs:4
↓ 7 callers
Method
write_message
Write a message to the outgoing buffer This method may flush the internal buffer if necessary (if it is full). If the message is too big to fit in t
wayland-backend/src/rs/socket.rs:183
↓ 6 callers
Function
client_id_from_ptr
(client: *mut wl_client)
wayland-backend/src/sys/server_impl/mod.rs:1281
↓ 6 callers
Method
fill_incoming_buffers
Try to fill the incoming buffers of this socket, to prepare a new round of parsing.
wayland-backend/src/rs/socket.rs:203
↓ 6 callers
Method
flush_clients
Flush outgoing buffers into their respective sockets.
wayland-server/src/display.rs:63
↓ 6 callers
Function
format_rust_code
(code: &str)
wayland-scanner/src/lib.rs:109
↓ 6 callers
Method
kill
(&mut self, reason: DisconnectReason)
wayland-backend/src/rs/server_impl/client.rs:313
↓ 6 callers
Method
lock_state
(&self)
wayland-backend/src/sys/client_impl/mod.rs:200
↓ 6 callers
Method
next_serial
(&mut self)
wayland-backend/src/rs/server_impl/client.rs:56
↓ 6 callers
Function
parse
(stream: S)
wayland-scanner/src/parse.rs:29
↓ 6 callers
Method
read_one_message
Read and deserialize a single message from the incoming buffers socket This method requires one closure that given an object id and an opcode, must p
wayland-backend/src/rs/socket.rs:231
↓ 6 callers
Method
remove
Remove an object from the store Does nothing if the object didn't previously exists
wayland-backend/src/rs/map.rs:51
↓ 6 callers
Method
send_request
Send a request associated with the provided object This is a low-level interface used by the code generated by `wayland-scanner`, you will likely ins
wayland-client/src/conn.rs:196
↓ 6 callers
Function
write_buf
Helper function to write a u32 or a RawFd to its buffer
wayland-backend/src/rs/wire.rs:80
↓ 5 callers
Method
as_ptr
Get the underlying libwayland pointer for this object
wayland-backend/src/sys/mod.rs:59
↓ 5 callers
Method
backend_handle
Returns the underlying [`Handle`] from `wayland-backend`.
wayland-server/src/display.rs:96
↓ 5 callers
Method
dispatch_clients
Dispatch all requests received from clients to their respective callbacks. The `state` argument is the main state of your compositor, which will be a
wayland-server/src/display.rs:58
↓ 5 callers
Method
dispatch_pending
Dispatch pending events Events are accumulated in the event queue internal buffer when the Wayland socket is read using the read APIs on [`Connection
wayland-client/src/event_queue.rs:375
↓ 5 callers
Method
flush
Flush the contents of the outgoing buffer into the socket
wayland-backend/src/rs/socket.rs:131
↓ 5 callers
Function
free_arrays
(signature: &[ArgumentType], arglist: &[wl_argument])
wayland-backend/src/sys/mod.rs:16
↓ 5 callers
Method
get_object
(&self, id: InnerObjectId)
wayland-backend/src/rs/server_impl/client.rs:380
↓ 5 callers
Method
id
(&self)
wayland-scanner/tests/scanner_assets/test-server-code.rs:82
↓ 5 callers
Method
interface
()
wayland-scanner/tests/scanner_assets/test-server-code.rs:78
↓ 5 callers
Method
new_event_queue
Create a new event queue
wayland-client/src/conn.rs:109
↓ 4 callers
Method
advance
Advance the internal counter of occupied space
wayland-backend/src/rs/socket.rs:294
↓ 4 callers
Method
all_null
(&self)
wayland-scanner/src/protocol.rs:55
↓ 4 callers
Function
assert_eq_msgs
check if two messages are equal if arguments contain FDs, check that the fd point to the same file, rather than are the same number.
wayland-backend/src/rs/socket.rs:360
↓ 4 callers
Method
blocking_dispatch
Block waiting for events and dispatch them This method is similar to [`dispatch_pending`](EventQueue::dispatch_pending), but if there are no pending
wayland-client/src/event_queue.rs:386
↓ 4 callers
Method
can_view
Check if given client is allowed to interact with given global If this function returns false, the client will not be notified of the existence of th
wayland-backend/src/server_api.rs:68
↓ 4 callers
Function
check_for_signature
( signature: &[ArgumentType], args: &[Argument<Id, Fd>], )
wayland-backend/src/protocol.rs:269
↓ 4 callers
Function
client_user_data
(client: *mut wl_client)
wayland-backend/src/sys/server_impl/mod.rs:1289
↓ 4 callers
Method
destroyed
(self: Arc<Self>, _: &Handle, _: &mut D, _: ClientId, _: ObjectId)
wayland-backend/src/rs/server_impl/mod.rs:130
↓ 4 callers
Method
destroyed
(self: Arc<Self>, _: &Handle, _: &mut D, _: ClientId, _: ObjectId)
wayland-backend/src/sys/server_impl/mod.rs:1648
↓ 4 callers
Function
gen_message_enum
( name: &Ident, side: Side, receiver: bool, messages: &[Message], )
wayland-scanner/src/common.rs:157
↓ 4 callers
Method
get_client
(&self, id: InnerObjectId)
wayland-backend/src/sys/server_impl/mod.rs:500
↓ 4 callers
Method
get_contents
Get the current contents of the occupied space of the buffer
wayland-backend/src/rs/socket.rs:313
↓ 4 callers
Method
get_object
(&self, id: InnerObjectId)
wayland-backend/src/rs/client_impl/mod.rs:535
↓ 4 callers
Method
get_writable_storage
Get mutable access to the unoccupied space of the buffer
wayland-backend/src/rs/socket.rs:318
↓ 4 callers
Method
handle
(&self)
wayland-backend/src/rs/server_impl/common_poll.rs:59
↓ 4 callers
Method
list
Access the list of currently advertized globals
wayland-tests/tests/helpers/globals.rs:75
↓ 4 callers
Function
rust_listener_get_user_data
(listener: *mut wl_listener)
wayland-sys/src/server.rs:291
↓ 4 callers
Function
same_interface_or_anonymous
(a: &'static Interface, b: &'static Interface)
wayland-backend/src/protocol.rs:286
↓ 4 callers
Method
send_event
(&self, evt: Self::Event<'_>)
wayland-scanner/tests/scanner_assets/test-server-code.rs:112
↓ 3 callers
Method
__set_object_data
( &mut self, odata: std::sync::Arc<dyn std::any::Any + Send + Sync + 'static>,
wayland-scanner/tests/scanner_assets/test-server-code.rs:148
↓ 3 callers
Method
answer
(&mut self, ddata: &mut D)
wayland-tests/tests/helpers/mod.rs:28
↓ 3 callers
Method
as_fd
Returns a file descriptor that may be polled for readiness. This file descriptor may be polled using apis such as epoll and kqueue to be told when a
wayland-server/src/socket.rs:187
↓ 3 callers
Method
as_raw_fd
Returns a file descriptor that may be polled for readiness. This file descriptor may be polled using apis such as epoll and kqueue to be told when a
wayland-server/src/socket.rs:174
↓ 3 callers
Method
backend
Get the [`Backend`] underlying this [`Connection`]
wayland-client/src/conn.rs:119
↓ 3 callers
Method
cleanup
(&mut self)
wayland-backend/src/rs/server_impl/handle.rs:43
↓ 3 callers
Method
debug
(&self, f: &mut std::fmt::Formatter<'_>)
wayland-backend/src/server_api.rs:45
↓ 3 callers
Method
disconnected
Notification that the client is disconnected
wayland-backend/src/server_api.rs:112
↓ 3 callers
Method
dispatch_events_for
( &self, data: &mut D, client_id: InnerClientId, )
wayland-backend/src/rs/server_impl/common_poll.rs:146
↓ 3 callers
Method
dispatch_inner_queue
(&self)
wayland-backend/src/client_api.rs:275
↓ 3 callers
Function
dotted_to_relname
(input: &str)
wayland-scanner/src/util.rs:102
↓ 3 callers
Method
get_global
(&self, id: InnerGlobalId)
wayland-backend/src/rs/server_impl/registry.rs:77
↓ 3 callers
Method
handle
Get a [`QueueHandle`] for this event queue
wayland-client/src/event_queue.rs:363
next →
1–100 of 759, ranked by callers