MCPcopy Create free account

hub / github.com/Smithay/wayland-rs / functions

Functions759 in github.com/Smithay/wayland-rs

↓ 183 callersMethodhandle
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 callersMethodclone
(&self)
wayland-client/src/event_queue.rs:589
↓ 83 callersMethodclone
(&self)
wayland-backend/src/rs/server_impl/mod.rs:110
↓ 76 callersFunctionroundtrip
( client: &mut TestClient<CD>, server: &mut TestServer<SD>, client_ddata: &mut CD, server_ddat
wayland-tests/tests/helpers/mod.rs:71
↓ 55 callersMethodclone
(&self)
wayland-backend/src/types/client.rs:45
↓ 40 callersMethodget_registry
( &self, qh: &QueueHandle<D>, udata: U, )
wayland-scanner/tests/scanner_assets/test-client-code.rs:296
↓ 39 callersMethodload
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 callersMethodadd_client
(&mut self)
wayland-tests/tests/helpers/mod.rs:43
↓ 29 callersMethodupgrade
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 callersFunctionsame_interface
(a: &'static Interface, b: &'static Interface)
wayland-backend/src/protocol.rs:265
↓ 19 callersMethodobject_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 callersFunctionsnake_to_camel
(input: &str)
wayland-scanner/src/util.rs:79
↓ 18 callersMethodas_raw_fd
(&self)
wayland-backend/src/rs/socket.rs:98
↓ 18 callersMethodis_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 callersMethodwith
Mutably access an object of the map
wayland-backend/src/rs/map.rs:88
↓ 14 callersMethodfind
Find an object in the store
wayland-backend/src/rs/map.rs:38
↓ 14 callersMethodinit
Initialize an object by assigning it its user-data
wayland-server/src/dispatch.rs:161
↓ 14 callersMethodsend_request
(&self, req: Self::Request<'_>)
wayland-scanner/tests/scanner_assets/test-client-code.rs:160
↓ 13 callersMethodid
The underlying [`ObjectId`]
wayland-server/src/lib.rs:297
↓ 13 callersMethodis_null
(&self)
wayland-backend/src/sys/client_impl/mod.rs:87
↓ 13 callersMethodmap_fd
(self, f: &mut impl FnMut(Fd) -> T)
wayland-backend/src/protocol.rs:87
↓ 12 callersMethoddowngrade
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 callersMethodget_client_mut
( &mut self, id: InnerClientId, )
wayland-backend/src/rs/server_impl/client.rs:703
↓ 12 callersMethodget_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 callersMethodid
(&self)
wayland-scanner/tests/scanner_assets/test-client-code.rs:143
↓ 12 callersMethodis_null
(&self)
wayland-backend/src/sys/server_impl/mod.rs:88
↓ 10 callersMethodlock_protocol
(&self)
wayland-backend/src/rs/client_impl/mod.rs:116
↓ 10 callersMethodpost_display_error
(&mut self, code: DisplayError, message: CString)
wayland-backend/src/rs/server_impl/client.rs:246
↓ 8 callersFunctionbyte
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 callersMethodget_client
(&self, id: InnerObjectId)
wayland-backend/src/rs/server_impl/handle.rs:120
↓ 8 callersMethodversion
(&self)
wayland-scanner/tests/scanner_assets/test-client-code.rs:147
↓ 7 callersMethodadd_client_with_data
( &mut self, data: Arc<dyn ways::backend::ClientData>, )
wayland-tests/tests/helpers/mod.rs:33
↓ 7 callersMethodbackend
(&self)
wayland-scanner/tests/scanner_assets/test-client-code.rs:157
↓ 7 callersMethoddata_as_any
(&self)
wayland-client/src/globals.rs:358
↓ 7 callersFunctiondecode_utf8_or_panic
(txt: Vec<u8>)
wayland-scanner/src/parse.rs:37
↓ 7 callersMethoddisplay
Get the `WlDisplay` associated with this connection
wayland-client/src/conn.rs:103
↓ 7 callersMethodflush
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 callersMethodget_client
Retrieve the [`Client`] which owns the object represented by the given ID
wayland-server/src/display.rs:115
↓ 7 callersMethodinsert_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 callersMethodinterface
()
wayland-scanner/tests/scanner_assets/test-client-code.rs:139
↓ 7 callersFunctionparse_description
(reader: &mut Reader<R>, attrs: Attributes)
wayland-scanner/src/parse.rs:147
↓ 7 callersFunctionparse_or_panic
(txt: &[u8])
wayland-scanner/src/parse.rs:44
↓ 7 callersMethodsend_constructor
( &self, req: Self::Request<'_>, data: Arc<dyn ObjectData>, )
wayland-scanner/tests/scanner_assets/test-client-code.rs:166
↓ 7 callersMethodstore_and_return_error
(&mut self, err: impl Into<WaylandError>)
wayland-backend/src/rs/client_impl/mod.rs:519
↓ 7 callersFunctionto_doc_attr
(text: &str)
wayland-scanner/src/util.rs:4
↓ 7 callersMethodwrite_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 callersFunctionclient_id_from_ptr
(client: *mut wl_client)
wayland-backend/src/sys/server_impl/mod.rs:1281
↓ 6 callersMethodfill_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 callersMethodflush_clients
Flush outgoing buffers into their respective sockets.
wayland-server/src/display.rs:63
↓ 6 callersFunctionformat_rust_code
(code: &str)
wayland-scanner/src/lib.rs:109
↓ 6 callersMethodkill
(&mut self, reason: DisconnectReason)
wayland-backend/src/rs/server_impl/client.rs:313
↓ 6 callersMethodlock_state
(&self)
wayland-backend/src/sys/client_impl/mod.rs:200
↓ 6 callersMethodnext_serial
(&mut self)
wayland-backend/src/rs/server_impl/client.rs:56
↓ 6 callersFunctionparse
(stream: S)
wayland-scanner/src/parse.rs:29
↓ 6 callersMethodread_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 callersMethodremove
Remove an object from the store Does nothing if the object didn't previously exists
wayland-backend/src/rs/map.rs:51
↓ 6 callersMethodsend_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 callersFunctionwrite_buf
Helper function to write a u32 or a RawFd to its buffer
wayland-backend/src/rs/wire.rs:80
↓ 5 callersMethodas_ptr
Get the underlying libwayland pointer for this object
wayland-backend/src/sys/mod.rs:59
↓ 5 callersMethodbackend_handle
Returns the underlying [`Handle`] from `wayland-backend`.
wayland-server/src/display.rs:96
↓ 5 callersMethoddispatch_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 callersMethoddispatch_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 callersMethodflush
Flush the contents of the outgoing buffer into the socket
wayland-backend/src/rs/socket.rs:131
↓ 5 callersFunctionfree_arrays
(signature: &[ArgumentType], arglist: &[wl_argument])
wayland-backend/src/sys/mod.rs:16
↓ 5 callersMethodget_object
(&self, id: InnerObjectId)
wayland-backend/src/rs/server_impl/client.rs:380
↓ 5 callersMethodid
(&self)
wayland-scanner/tests/scanner_assets/test-server-code.rs:82
↓ 5 callersMethodinterface
()
wayland-scanner/tests/scanner_assets/test-server-code.rs:78
↓ 5 callersMethodnew_event_queue
Create a new event queue
wayland-client/src/conn.rs:109
↓ 4 callersMethodadvance
Advance the internal counter of occupied space
wayland-backend/src/rs/socket.rs:294
↓ 4 callersMethodall_null
(&self)
wayland-scanner/src/protocol.rs:55
↓ 4 callersFunctionassert_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 callersMethodblocking_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 callersMethodcan_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 callersFunctioncheck_for_signature
( signature: &[ArgumentType], args: &[Argument<Id, Fd>], )
wayland-backend/src/protocol.rs:269
↓ 4 callersFunctionclient_user_data
(client: *mut wl_client)
wayland-backend/src/sys/server_impl/mod.rs:1289
↓ 4 callersMethoddestroyed
(self: Arc<Self>, _: &Handle, _: &mut D, _: ClientId, _: ObjectId)
wayland-backend/src/rs/server_impl/mod.rs:130
↓ 4 callersMethoddestroyed
(self: Arc<Self>, _: &Handle, _: &mut D, _: ClientId, _: ObjectId)
wayland-backend/src/sys/server_impl/mod.rs:1648
↓ 4 callersFunctiongen_message_enum
( name: &Ident, side: Side, receiver: bool, messages: &[Message], )
wayland-scanner/src/common.rs:157
↓ 4 callersMethodget_client
(&self, id: InnerObjectId)
wayland-backend/src/sys/server_impl/mod.rs:500
↓ 4 callersMethodget_contents
Get the current contents of the occupied space of the buffer
wayland-backend/src/rs/socket.rs:313
↓ 4 callersMethodget_object
(&self, id: InnerObjectId)
wayland-backend/src/rs/client_impl/mod.rs:535
↓ 4 callersMethodget_writable_storage
Get mutable access to the unoccupied space of the buffer
wayland-backend/src/rs/socket.rs:318
↓ 4 callersMethodhandle
(&self)
wayland-backend/src/rs/server_impl/common_poll.rs:59
↓ 4 callersMethodlist
Access the list of currently advertized globals
wayland-tests/tests/helpers/globals.rs:75
↓ 4 callersFunctionrust_listener_get_user_data
(listener: *mut wl_listener)
wayland-sys/src/server.rs:291
↓ 4 callersFunctionsame_interface_or_anonymous
(a: &'static Interface, b: &'static Interface)
wayland-backend/src/protocol.rs:286
↓ 4 callersMethodsend_event
(&self, evt: Self::Event<'_>)
wayland-scanner/tests/scanner_assets/test-server-code.rs:112
↓ 3 callersMethod__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 callersMethodanswer
(&mut self, ddata: &mut D)
wayland-tests/tests/helpers/mod.rs:28
↓ 3 callersMethodas_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 callersMethodas_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 callersMethodbackend
Get the [`Backend`] underlying this [`Connection`]
wayland-client/src/conn.rs:119
↓ 3 callersMethodcleanup
(&mut self)
wayland-backend/src/rs/server_impl/handle.rs:43
↓ 3 callersMethoddebug
(&self, f: &mut std::fmt::Formatter<'_>)
wayland-backend/src/server_api.rs:45
↓ 3 callersMethoddisconnected
Notification that the client is disconnected
wayland-backend/src/server_api.rs:112
↓ 3 callersMethoddispatch_events_for
( &self, data: &mut D, client_id: InnerClientId, )
wayland-backend/src/rs/server_impl/common_poll.rs:146
↓ 3 callersMethoddispatch_inner_queue
(&self)
wayland-backend/src/client_api.rs:275
↓ 3 callersFunctiondotted_to_relname
(input: &str)
wayland-scanner/src/util.rs:102
↓ 3 callersMethodget_global
(&self, id: InnerGlobalId)
wayland-backend/src/rs/server_impl/registry.rs:77
↓ 3 callersMethodhandle
Get a [`QueueHandle`] for this event queue
wayland-client/src/event_queue.rs:363
next →1–100 of 759, ranked by callers