diff --git a/help.html b/help.html index 0cc9485ba..a5a0d40ec 100644 --- a/help.html +++ b/help.html @@ -1 +1 @@ -
RequestDataExt
.RequestDataExt
.pub struct ActivationState { /* private fields */ }
State for xdg-activation
+pub struct ActivationState { /* private fields */ }
State for xdg-activation
Bind the xdg-activation
global
Activate a surface with the provided token.
+Activate a surface with the provided token.
Request a token for surface activation.
To attach custom data to the request implement RequestDataExt
on a custom type
@@ -18,49 +18,49 @@
R: RequestDataExt + 'static,
Request a token for surface activation with user data.
To use this method you need to provide [delegate_activation
] with your custom type.
E.g. delegate_activation!(SimpleWindow, MyRequestData);
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+pub struct RequestData {
- pub app_id: Option<String>,
- pub seat_and_serial: Option<(WlSeat, u32)>,
- pub surface: Option<WlSurface>,
+RequestData in smithay_client_toolkit::activation - Rust pub struct RequestData {
+ pub app_id: Option<String>,
+ pub seat_and_serial: Option<(WlSeat, u32)>,
+ pub surface: Option<WlSurface>,
}
Expand description
Minimal implementation of RequestDataExt
.
Use a custom type implementing RequestDataExt
to store more data with a token request
e.g. to identify which request produced which token.
-Fields§
§app_id: Option<String>
App_id of the application requesting the token, if applicable
-§seat_and_serial: Option<(WlSeat, u32)>
Seat and serial of the window requesting the token, if applicable.
+Fields§
§app_id: Option<String>
App_id of the application requesting the token, if applicable
+§seat_and_serial: Option<(WlSeat, u32)>
Seat and serial of the window requesting the token, if applicable.
Warning: Many compositors will issue invalid tokens for requests without
recent serials. There is no way to detect this from the client-side.
-§surface: Option<WlSurface>
Surface of the window requesting the token, if applicable.
+§surface: Option<WlSurface>
Surface of the window requesting the token, if applicable.
Warning: Many compositors will issue invalid tokens for requests from
unfocused surfaces. There is no way to detect this from the client-side.
-Trait Implementations§
source§impl Clone for RequestData
source§fn clone(&self) -> RequestData
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RequestData
source§impl RequestDataExt for RequestData
Auto Trait Implementations§
§impl Freeze for RequestData
§impl !RefUnwindSafe for RequestData
§impl Send for RequestData
§impl Sync for RequestData
§impl Unpin for RequestData
§impl !UnwindSafe for RequestData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+Trait Implementations§
source§impl Clone for RequestData
source§fn clone(&self) -> RequestData
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RequestData
source§impl RequestDataExt for RequestData
Auto Trait Implementations§
§impl Freeze for RequestData
§impl !RefUnwindSafe for RequestData
§impl Send for RequestData
§impl Sync for RequestData
§impl Unpin for RequestData
§impl !UnwindSafe for RequestData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/activation/trait.ActivationHandler.html b/smithay_client_toolkit/activation/trait.ActivationHandler.html
index fcc181593..7ea9c06f5 100644
--- a/smithay_client_toolkit/activation/trait.ActivationHandler.html
+++ b/smithay_client_toolkit/activation/trait.ActivationHandler.html
@@ -1,9 +1,9 @@
-ActivationHandler in smithay_client_toolkit::activation - Rust pub trait ActivationHandler: Sized {
+ActivationHandler in smithay_client_toolkit::activation - Rust pub trait ActivationHandler: Sized {
type RequestData: RequestDataExt;
// Required method
- fn new_token(&mut self, token: String, data: &Self::RequestData);
+ fn new_token(&mut self, token: String, data: &Self::RequestData);
}
Expand description
Handler for xdg-activation
Required Associated Types§
sourcetype RequestData: RequestDataExt
Data type used for requesting activation tokens
-Required Methods§
sourcefn new_token(&mut self, token: String, data: &Self::RequestData)
A token was issued for a previous request with data
.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+
Required Methods§
sourcefn new_token(&mut self, token: String, data: &Self::RequestData)
A token was issued for a previous request with data
.
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/smithay_client_toolkit/activation/trait.RequestDataExt.html b/smithay_client_toolkit/activation/trait.RequestDataExt.html
index 824fd0f1f..6a3780f35 100644
--- a/smithay_client_toolkit/activation/trait.RequestDataExt.html
+++ b/smithay_client_toolkit/activation/trait.RequestDataExt.html
@@ -1,14 +1,14 @@
-RequestDataExt in smithay_client_toolkit::activation - Rust pub trait RequestDataExt: Send + Sync {
+RequestDataExt in smithay_client_toolkit::activation - Rust pub trait RequestDataExt: Send + Sync {
// Required methods
- fn app_id(&self) -> Option<&str>;
- fn seat_and_serial(&self) -> Option<(&WlSeat, u32)>;
- fn surface(&self) -> Option<&WlSurface>;
+ fn app_id(&self) -> Option<&str>;
+ fn seat_and_serial(&self) -> Option<(&WlSeat, u32)>;
+ fn surface(&self) -> Option<&WlSurface>;
}
Expand description
Data attached to a token request
-Required Methods§
sourcefn app_id(&self) -> Option<&str>
App_id of the application requesting the token, if applicable
-sourcefn seat_and_serial(&self) -> Option<(&WlSeat, u32)>
Seat and serial of the window requesting the token, if applicable.
+Required Methods§
sourcefn app_id(&self) -> Option<&str>
App_id of the application requesting the token, if applicable
+sourcefn seat_and_serial(&self) -> Option<(&WlSeat, u32)>
Seat and serial of the window requesting the token, if applicable.
Warning: Many compositors will issue invalid tokens for requests without
recent serials. There is no way to detect this from the client-side.
-Implementors§
source§impl RequestDataExt for RequestData
\ No newline at end of file
diff --git a/smithay_client_toolkit/all.html b/smithay_client_toolkit/all.html
index 9b8b7649f..07ea1c0dc 100644
--- a/smithay_client_toolkit/all.html
+++ b/smithay_client_toolkit/all.html
@@ -1 +1 @@
-List of all items in this crate List of all items
Structs
- activation::ActivationState
- activation::RequestData
- compositor::CompositorState
- compositor::Region
- compositor::Surface
- compositor::SurfaceData
- data_device_manager::DataDeviceManagerState
- data_device_manager::ReadPipe
- data_device_manager::WritePipe
- data_device_manager::data_device::DataDevice
- data_device_manager::data_device::DataDeviceData
- data_device_manager::data_offer::DataDeviceOfferInner
- data_device_manager::data_offer::DataOfferData
- data_device_manager::data_offer::DragOffer
- data_device_manager::data_offer::SelectionOffer
- data_device_manager::data_source::CopyPasteSource
- data_device_manager::data_source::DataSourceData
- data_device_manager::data_source::DragSource
- dmabuf::DmabufFeedback
- dmabuf::DmabufFeedbackTranche
- dmabuf::DmabufFormat
- dmabuf::DmabufParams
- dmabuf::DmabufState
- foreign_toplevel_list::ForeignToplevelInfo
- foreign_toplevel_list::ForeignToplevelList
- globals::GlobalData
- output::Mode
- output::OutputData
- output::OutputInfo
- output::OutputState
- output::ScaleWatcherHandle
- presentation_time::PresentTime
- presentation_time::PresentationTimeState
- primary_selection::PrimarySelectionManagerState
- primary_selection::device::PrimarySelectionDevice
- primary_selection::device::PrimarySelectionDeviceData
- primary_selection::offer::PrimarySelectionOffer
- primary_selection::offer::PrimarySelectionOfferData
- primary_selection::selection::PrimarySelectionSource
- registry::RegistryState
- registry::SimpleGlobal
- seat::SeatData
- seat::SeatInfo
- seat::SeatState
- seat::keyboard::KeyCode
- seat::keyboard::KeyEvent
- seat::keyboard::KeyboardData
- seat::keyboard::Keymap
- seat::keyboard::Keysym
- seat::keyboard::Modifiers
- seat::keyboard::RMLVO
- seat::keyboard::RawModifiers
- seat::pointer::AxisScroll
- seat::pointer::CursorIconParseError
- seat::pointer::PointerData
- seat::pointer::PointerEvent
- seat::pointer::ThemedPointer
- seat::pointer::cursor_shape::CursorShapeManager
- seat::pointer_constraints::PointerConstraintsState
- seat::relative_pointer::RelativeMotionEvent
- seat::relative_pointer::RelativePointerState
- seat::touch::TouchData
- session_lock::SessionLock
- session_lock::SessionLockData
- session_lock::SessionLockInner
- session_lock::SessionLockState
- session_lock::SessionLockSurface
- session_lock::SessionLockSurfaceConfigure
- session_lock::SessionLockSurfaceData
- shell::Unsupported
- shell::wlr_layer::Anchor
- shell::wlr_layer::LayerShell
- shell::wlr_layer::LayerSurface
- shell::wlr_layer::LayerSurfaceConfigure
- shell::wlr_layer::LayerSurfaceData
- shell::wlr_layer::UnknownLayer
- shell::xdg::XdgPositioner
- shell::xdg::XdgShell
- shell::xdg::XdgShellSurface
- shell::xdg::fallback_frame::FallbackFrame
- shell::xdg::popup::Popup
- shell::xdg::popup::PopupConfigure
- shell::xdg::popup::PopupData
- shell::xdg::window::Window
- shell::xdg::window::WindowConfigure
- shell::xdg::window::WindowData
- shm::Shm
- shm::multi::BufferSlot
- shm::multi::MultiPool
- shm::raw::RawPool
- shm::slot::Buffer
- shm::slot::Slot
- shm::slot::SlotPool
- subcompositor::SubcompositorState
- subcompositor::SubsurfaceData
Enums
- data_device_manager::data_offer::DataOfferError
- error::GlobalError
- registry::GlobalProxy
- seat::Capability
- seat::SeatError
- seat::keyboard::KeyboardError
- seat::keyboard::RepeatInfo
- seat::pointer::CursorIcon
- seat::pointer::PointerEventKind
- seat::pointer::PointerThemeError
- seat::pointer::ThemeSpec
- shell::wlr_layer::KeyboardInteractivity
- shell::wlr_layer::Layer
- shell::wlr_layer::SurfaceKind
- shell::xdg::popup::ConfigureKind
- shell::xdg::window::DecorationMode
- shell::xdg::window::WindowDecorations
- shm::CreatePoolError
- shm::multi::PoolError
- shm::slot::ActivateSlotError
- shm::slot::CreateBufferError
Traits
- activation::ActivationHandler
- activation::RequestDataExt
- compositor::CompositorHandler
- compositor::SurfaceDataExt
- data_device_manager::data_device::DataDeviceHandler
- data_device_manager::data_offer::DataOfferHandler
- data_device_manager::data_source::DataSourceDataExt
- data_device_manager::data_source::DataSourceHandler
- dmabuf::DmabufHandler
- foreign_toplevel_list::ForeignToplevelListHandler
- globals::ProvidesBoundGlobal
- output::OutputHandler
- presentation_time::PresentationTimeHandler
- primary_selection::device::PrimarySelectionDeviceHandler
- primary_selection::selection::PrimarySelectionSourceHandler
- registry::ProvidesRegistryState
- registry::RegistryHandler
- seat::SeatHandler
- seat::keyboard::KeyboardDataExt
- seat::keyboard::KeyboardHandler
- seat::pointer::PointerDataExt
- seat::pointer::PointerHandler
- seat::pointer_constraints::PointerConstraintsHandler
- seat::relative_pointer::RelativePointerHandler
- seat::touch::TouchDataExt
- seat::touch::TouchHandler
- session_lock::SessionLockHandler
- shell::WaylandSurface
- shell::wlr_layer::LayerShellHandler
- shell::xdg::XdgSurface
- shell::xdg::popup::PopupHandler
- shell::xdg::window::WindowHandler
- shm::ShmHandler
- shm::slot::CanvasKey
Macros
- delegate_activation
- delegate_compositor
- delegate_data_device
- delegate_dmabuf
- delegate_foreign_toplevel_list
- delegate_keyboard
- delegate_layer
- delegate_output
- delegate_pointer
- delegate_pointer_constraints
- delegate_presentation_time
- delegate_primary_selection
- delegate_registry
- delegate_relative_pointer
- delegate_seat
- delegate_session_lock
- delegate_shm
- delegate_simple
- delegate_subcompositor
- delegate_touch
- delegate_xdg_popup
- delegate_xdg_shell
- delegate_xdg_window
- registry_handlers
Functions
Type Aliases
Constants
\ No newline at end of file
+List of all items in this crate List of all items
Structs
- activation::ActivationState
- activation::RequestData
- compositor::CompositorState
- compositor::Region
- compositor::Surface
- compositor::SurfaceData
- data_device_manager::DataDeviceManagerState
- data_device_manager::ReadPipe
- data_device_manager::WritePipe
- data_device_manager::data_device::DataDevice
- data_device_manager::data_device::DataDeviceData
- data_device_manager::data_offer::DataDeviceOfferInner
- data_device_manager::data_offer::DataOfferData
- data_device_manager::data_offer::DragOffer
- data_device_manager::data_offer::SelectionOffer
- data_device_manager::data_source::CopyPasteSource
- data_device_manager::data_source::DataSourceData
- data_device_manager::data_source::DragSource
- dmabuf::DmabufFeedback
- dmabuf::DmabufFeedbackTranche
- dmabuf::DmabufFormat
- dmabuf::DmabufParams
- dmabuf::DmabufState
- foreign_toplevel_list::ForeignToplevelInfo
- foreign_toplevel_list::ForeignToplevelList
- globals::GlobalData
- output::Mode
- output::OutputData
- output::OutputInfo
- output::OutputState
- output::ScaleWatcherHandle
- presentation_time::PresentTime
- presentation_time::PresentationTimeState
- primary_selection::PrimarySelectionManagerState
- primary_selection::device::PrimarySelectionDevice
- primary_selection::device::PrimarySelectionDeviceData
- primary_selection::offer::PrimarySelectionOffer
- primary_selection::offer::PrimarySelectionOfferData
- primary_selection::selection::PrimarySelectionSource
- registry::RegistryState
- registry::SimpleGlobal
- seat::SeatData
- seat::SeatInfo
- seat::SeatState
- seat::keyboard::KeyCode
- seat::keyboard::KeyEvent
- seat::keyboard::KeyboardData
- seat::keyboard::Keymap
- seat::keyboard::Keysym
- seat::keyboard::Modifiers
- seat::keyboard::RMLVO
- seat::keyboard::RawModifiers
- seat::pointer::AxisScroll
- seat::pointer::CursorIconParseError
- seat::pointer::PointerData
- seat::pointer::PointerEvent
- seat::pointer::ThemedPointer
- seat::pointer::cursor_shape::CursorShapeManager
- seat::pointer_constraints::PointerConstraintsState
- seat::relative_pointer::RelativeMotionEvent
- seat::relative_pointer::RelativePointerState
- seat::touch::TouchData
- session_lock::SessionLock
- session_lock::SessionLockData
- session_lock::SessionLockInner
- session_lock::SessionLockState
- session_lock::SessionLockSurface
- session_lock::SessionLockSurfaceConfigure
- session_lock::SessionLockSurfaceData
- shell::Unsupported
- shell::wlr_layer::Anchor
- shell::wlr_layer::LayerShell
- shell::wlr_layer::LayerSurface
- shell::wlr_layer::LayerSurfaceConfigure
- shell::wlr_layer::LayerSurfaceData
- shell::wlr_layer::UnknownLayer
- shell::xdg::XdgPositioner
- shell::xdg::XdgShell
- shell::xdg::XdgShellSurface
- shell::xdg::fallback_frame::FallbackFrame
- shell::xdg::popup::Popup
- shell::xdg::popup::PopupConfigure
- shell::xdg::popup::PopupData
- shell::xdg::window::Window
- shell::xdg::window::WindowConfigure
- shell::xdg::window::WindowData
- shm::Shm
- shm::multi::BufferSlot
- shm::multi::MultiPool
- shm::raw::RawPool
- shm::slot::Buffer
- shm::slot::Slot
- shm::slot::SlotPool
- subcompositor::SubcompositorState
- subcompositor::SubsurfaceData
Enums
- data_device_manager::data_offer::DataOfferError
- error::GlobalError
- registry::GlobalProxy
- seat::Capability
- seat::SeatError
- seat::keyboard::KeyboardError
- seat::keyboard::RepeatInfo
- seat::pointer::CursorIcon
- seat::pointer::PointerEventKind
- seat::pointer::PointerThemeError
- seat::pointer::ThemeSpec
- shell::wlr_layer::KeyboardInteractivity
- shell::wlr_layer::Layer
- shell::wlr_layer::SurfaceKind
- shell::xdg::popup::ConfigureKind
- shell::xdg::window::DecorationMode
- shell::xdg::window::WindowDecorations
- shm::CreatePoolError
- shm::multi::PoolError
- shm::slot::ActivateSlotError
- shm::slot::CreateBufferError
Traits
- activation::ActivationHandler
- activation::RequestDataExt
- compositor::CompositorHandler
- compositor::SurfaceDataExt
- data_device_manager::data_device::DataDeviceHandler
- data_device_manager::data_offer::DataOfferHandler
- data_device_manager::data_source::DataSourceDataExt
- data_device_manager::data_source::DataSourceHandler
- dmabuf::DmabufHandler
- foreign_toplevel_list::ForeignToplevelListHandler
- globals::ProvidesBoundGlobal
- output::OutputHandler
- presentation_time::PresentationTimeHandler
- primary_selection::device::PrimarySelectionDeviceHandler
- primary_selection::selection::PrimarySelectionSourceHandler
- registry::ProvidesRegistryState
- registry::RegistryHandler
- seat::SeatHandler
- seat::keyboard::KeyboardDataExt
- seat::keyboard::KeyboardHandler
- seat::pointer::PointerDataExt
- seat::pointer::PointerHandler
- seat::pointer_constraints::PointerConstraintsHandler
- seat::relative_pointer::RelativePointerHandler
- seat::touch::TouchDataExt
- seat::touch::TouchHandler
- session_lock::SessionLockHandler
- shell::WaylandSurface
- shell::wlr_layer::LayerShellHandler
- shell::xdg::XdgSurface
- shell::xdg::popup::PopupHandler
- shell::xdg::window::WindowHandler
- shm::ShmHandler
- shm::slot::CanvasKey
Macros
- delegate_activation
- delegate_compositor
- delegate_data_device
- delegate_dmabuf
- delegate_foreign_toplevel_list
- delegate_keyboard
- delegate_layer
- delegate_output
- delegate_pointer
- delegate_pointer_constraints
- delegate_presentation_time
- delegate_primary_selection
- delegate_registry
- delegate_relative_pointer
- delegate_seat
- delegate_session_lock
- delegate_shm
- delegate_simple
- delegate_subcompositor
- delegate_touch
- delegate_xdg_popup
- delegate_xdg_shell
- delegate_xdg_window
- registry_handlers
Functions
Type Aliases
Constants
\ No newline at end of file
diff --git a/smithay_client_toolkit/compositor/index.html b/smithay_client_toolkit/compositor/index.html
index d83730cfa..f3d57a1d7 100644
--- a/smithay_client_toolkit/compositor/index.html
+++ b/smithay_client_toolkit/compositor/index.html
@@ -1 +1 @@
-smithay_client_toolkit::compositor - Rust Module smithay_client_toolkit::compositor
source · Structs§
- A trivial wrapper around a [
WlRegion
][wl_region::WlRegion]. - An owned
WlSurface
. - Data associated with a
WlSurface
.
Traits§
\ No newline at end of file
+smithay_client_toolkit::compositor - Rust
\ No newline at end of file
diff --git a/smithay_client_toolkit/compositor/struct.CompositorState.html b/smithay_client_toolkit/compositor/struct.CompositorState.html
index 7946b8c30..4095495cd 100644
--- a/smithay_client_toolkit/compositor/struct.CompositorState.html
+++ b/smithay_client_toolkit/compositor/struct.CompositorState.html
@@ -1,8 +1,8 @@
-CompositorState in smithay_client_toolkit::compositor - Rust pub struct CompositorState { /* private fields */ }
Implementations§
source§impl CompositorState
sourcepub const API_VERSION_MAX: u32 = 6u32
The maximum API version for WlCompositor that this object will bind.
+CompositorState in smithay_client_toolkit::compositor - Rust pub struct CompositorState { /* private fields */ }
Implementations§
source§impl CompositorState
sourcepub const API_VERSION_MAX: u32 = 6u32
The maximum API version for WlCompositor that this object will bind.
sourcepub fn bind<State>(
globals: &GlobalList,
qh: &QueueHandle<State>,
-) -> Result<CompositorState, BindError>where
+) -> Result<CompositorState, BindError>where
State: Dispatch<WlCompositor, GlobalData, State> + 'static,sourcepub fn wl_compositor(&self) -> &WlCompositor
sourcepub fn create_surface<D>(&self, qh: &QueueHandle<D>) -> WlSurfacewhere
D: Dispatch<WlSurface, SurfaceData> + 'static,
sourcepub fn create_surface_with_data<D, U>(
&self,
@@ -10,62 +10,62 @@
data: U,
) -> WlSurfacewhere
D: Dispatch<WlSurface, U> + 'static,
- U: SurfaceDataExt + 'static,
Trait Implementations§
source§impl Clone for CompositorState
source§fn clone(&self) -> CompositorState
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CompositorState
source§impl<D> Dispatch<WlCallback, WlSurface, D> for CompositorStatewhere
+ U: SurfaceDataExt + 'static,
Trait Implementations§
source§impl Clone for CompositorState
source§fn clone(&self) -> CompositorState
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CompositorState
source§impl<D> Dispatch<WlCallback, WlSurface, D> for CompositorStatewhere
D: Dispatch<WlCallback, WlSurface> + CompositorHandler,
source§impl<D> Dispatch<WlCompositor, GlobalData, D> for CompositorState
source§impl<D> Dispatch<WlCompositor, GlobalData, D> for CompositorStatewhere
D: Dispatch<WlCompositor, GlobalData> + CompositorHandler,
source§impl<D, U> Dispatch<WlSurface, U, D> for CompositorState
source§impl<D, U> Dispatch<WlSurface, U, D> for CompositorStatewhere
D: Dispatch<WlSurface, U> + CompositorHandler + OutputHandler + 'static,
U: SurfaceDataExt + 'static,
source§impl ProvidesBoundGlobal<WlCompositor, { CompositorState::API_VERSION_MAX }> for CompositorState
source§fn bound_global(&self) -> Result<WlCompositor, GlobalError>
source§fn with_min_version(&self, version: u32) -> Result<I, GlobalError>
Auto Trait Implementations§
§impl Freeze for CompositorState
§impl !RefUnwindSafe for CompositorState
§impl Send for CompositorState
§impl Sync for CompositorState
§impl Unpin for CompositorState
§impl !UnwindSafe for CompositorState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
source§impl ProvidesBoundGlobal<WlCompositor, { CompositorState::API_VERSION_MAX }> for CompositorState
source§fn bound_global(&self) -> Result<WlCompositor, GlobalError>
source§fn with_min_version(&self, version: u32) -> Result<I, GlobalError>
Auto Trait Implementations§
§impl Freeze for CompositorState
§impl !RefUnwindSafe for CompositorState
§impl Send for CompositorState
§impl Sync for CompositorState
§impl Unpin for CompositorState
§impl !UnwindSafe for CompositorState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/compositor/struct.Region.html b/smithay_client_toolkit/compositor/struct.Region.html
index ac790d786..1b388fc13 100644
--- a/smithay_client_toolkit/compositor/struct.Region.html
+++ b/smithay_client_toolkit/compositor/struct.Region.html
@@ -1,27 +1,27 @@
-Region in smithay_client_toolkit::compositor - Rust Struct smithay_client_toolkit::compositor::Region
source · pub struct Region(/* private fields */);
Expand description
A trivial wrapper around a [WlRegion
][wl_region::WlRegion].
+Region in smithay_client_toolkit::compositor - Rust pub struct Region(/* private fields */);
Expand description
A trivial wrapper around a [WlRegion
][wl_region::WlRegion].
This destroys the region on drop.
Implementations§
source§impl Region
sourcepub fn new(
compositor: &impl ProvidesBoundGlobal<WlCompositor, { CompositorState::API_VERSION_MAX }>,
-) -> Result<Region, GlobalError>
sourcepub fn add(&self, x: i32, y: i32, width: i32, height: i32)
sourcepub fn subtract(&self, x: i32, y: i32, width: i32, height: i32)
sourcepub fn wl_region(&self) -> &WlRegion
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Region
§impl !RefUnwindSafe for Region
§impl Send for Region
§impl Sync for Region
§impl Unpin for Region
§impl !UnwindSafe for Region
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Region
§impl !RefUnwindSafe for Region
§impl Send for Region
§impl Sync for Region
§impl Unpin for Region
§impl !UnwindSafe for Region
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/compositor/struct.Surface.html b/smithay_client_toolkit/compositor/struct.Surface.html
index 5c13f3ce7..ad65a8315 100644
--- a/smithay_client_toolkit/compositor/struct.Surface.html
+++ b/smithay_client_toolkit/compositor/struct.Surface.html
@@ -1,35 +1,35 @@
-Surface in smithay_client_toolkit::compositor - Rust Struct smithay_client_toolkit::compositor::Surface
source · pub struct Surface(/* private fields */);
Expand description
An owned WlSurface
.
+Surface in smithay_client_toolkit::compositor - Rust pub struct Surface(/* private fields */);
Expand description
An owned WlSurface
.
This destroys the surface on drop.
Implementations§
source§impl Surface
sourcepub fn new<D>(
compositor: &impl ProvidesBoundGlobal<WlCompositor, { CompositorState::API_VERSION_MAX }>,
qh: &QueueHandle<D>,
-) -> Result<Self, GlobalError>where
+) -> Result<Self, GlobalError>where
D: Dispatch<WlSurface, SurfaceData> + 'static,sourcepub fn with_data<D, U>(
compositor: &impl ProvidesBoundGlobal<WlCompositor, { CompositorState::API_VERSION_MAX }>,
qh: &QueueHandle<D>,
data: U,
-) -> Result<Self, GlobalError>
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Surface
§impl !RefUnwindSafe for Surface
§impl Send for Surface
§impl Sync for Surface
§impl Unpin for Surface
§impl !UnwindSafe for Surface
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+ U: Send + Sync + 'static,sourcepub fn wl_surface(&self) -> &WlSurface
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Surface
§impl !RefUnwindSafe for Surface
§impl Send for Surface
§impl Sync for Surface
§impl Unpin for Surface
§impl !UnwindSafe for Surface
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/compositor/struct.SurfaceData.html b/smithay_client_toolkit/compositor/struct.SurfaceData.html
index 7fc2574aa..845c33751 100644
--- a/smithay_client_toolkit/compositor/struct.SurfaceData.html
+++ b/smithay_client_toolkit/compositor/struct.SurfaceData.html
@@ -1,31 +1,31 @@
-SurfaceData in smithay_client_toolkit::compositor - Rust Struct smithay_client_toolkit::compositor::SurfaceData
source · pub struct SurfaceData { /* private fields */ }
Expand description
Data associated with a WlSurface
.
-Implementations§
source§impl SurfaceData
sourcepub fn new(parent_surface: Option<WlSurface>, scale_factor: i32) -> Self
Create a new surface that initially reports the given scale factor and parent.
-sourcepub fn scale_factor(&self) -> i32
The scale factor of the output with the highest scale factor.
+SurfaceData in smithay_client_toolkit::compositor - Rust pub struct SurfaceData { /* private fields */ }
Expand description
Data associated with a WlSurface
.
+Implementations§
source§impl SurfaceData
sourcepub fn new(parent_surface: Option<WlSurface>, scale_factor: i32) -> Self
Create a new surface that initially reports the given scale factor and parent.
+sourcepub fn scale_factor(&self) -> i32
The scale factor of the output with the highest scale factor.
sourcepub fn parent_surface(&self) -> Option<&WlSurface>
The parent surface used for this surface.
+sourcepub fn parent_surface(&self) -> Option<&WlSurface>
The parent surface used for this surface.
The surface is Some
for primarily for subsurfaces,
since they must have a parent surface.
-Trait Implementations§
source§impl Debug for SurfaceData
source§impl Default for SurfaceData
source§impl SurfaceDataExt for SurfaceData
source§fn surface_data(&self) -> &SurfaceData
Auto Trait Implementations§
§impl !Freeze for SurfaceData
§impl !RefUnwindSafe for SurfaceData
§impl Send for SurfaceData
§impl Sync for SurfaceData
§impl Unpin for SurfaceData
§impl !UnwindSafe for SurfaceData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+Trait Implementations§
source§impl Debug for SurfaceData
source§impl Default for SurfaceData
source§impl SurfaceDataExt for SurfaceData
source§fn surface_data(&self) -> &SurfaceData
Auto Trait Implementations§
§impl !Freeze for SurfaceData
§impl !RefUnwindSafe for SurfaceData
§impl Send for SurfaceData
§impl Sync for SurfaceData
§impl Unpin for SurfaceData
§impl !UnwindSafe for SurfaceData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/compositor/trait.CompositorHandler.html b/smithay_client_toolkit/compositor/trait.CompositorHandler.html
index 825834609..e0b605cbf 100644
--- a/smithay_client_toolkit/compositor/trait.CompositorHandler.html
+++ b/smithay_client_toolkit/compositor/trait.CompositorHandler.html
@@ -1,11 +1,11 @@
-CompositorHandler in smithay_client_toolkit::compositor - Rust pub trait CompositorHandler: Sized {
+CompositorHandler in smithay_client_toolkit::compositor - Rust pub trait CompositorHandler: Sized {
// Required methods
fn scale_factor_changed(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
surface: &WlSurface,
- new_factor: i32,
+ new_factor: i32,
);
fn transform_changed(
&mut self,
@@ -19,7 +19,7 @@
conn: &Connection,
qh: &QueueHandle<Self>,
surface: &WlSurface,
- time: u32,
+ time: u32,
);
fn surface_enter(
&mut self,
@@ -40,7 +40,7 @@
conn: &Connection,
qh: &QueueHandle<Self>,
surface: &WlSurface,
- new_factor: i32,
+ new_factor: i32,
)
The surface has either been moved into or out of an output and the output has a different scale factor.
sourcefn transform_changed(
&mut self,
@@ -54,7 +54,7 @@
conn: &Connection,
qh: &QueueHandle<Self>,
surface: &WlSurface,
- time: u32,
+ time: u32,
)
A frame callback has been completed.
Frame callbacks are used to avoid updating surfaces that are not currently visible. If a
frame callback is requested prior to committing a surface, the client should avoid drawing
@@ -77,4 +77,4 @@
surface: &WlSurface,
output: &WlOutput,
)
The surface has left an output.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/smithay_client_toolkit/compositor/trait.SurfaceDataExt.html b/smithay_client_toolkit/compositor/trait.SurfaceDataExt.html
index 7a68e64d5..e61288415 100644
--- a/smithay_client_toolkit/compositor/trait.SurfaceDataExt.html
+++ b/smithay_client_toolkit/compositor/trait.SurfaceDataExt.html
@@ -1,4 +1,4 @@
-SurfaceDataExt in smithay_client_toolkit::compositor - Rust pub trait SurfaceDataExt: Send + Sync {
+SurfaceDataExt in smithay_client_toolkit::compositor - Rust pub trait SurfaceDataExt: Send + Sync {
// Required method
fn surface_data(&self) -> &SurfaceData;
}
Required Methods§
sourcefn surface_data(&self) -> &SurfaceData
Implementors§
source§impl SurfaceDataExt for SurfaceData
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_device/index.html b/smithay_client_toolkit/data_device_manager/data_device/index.html
index dee885d38..02b64b17c 100644
--- a/smithay_client_toolkit/data_device_manager/data_device/index.html
+++ b/smithay_client_toolkit/data_device_manager/data_device/index.html
@@ -1 +1 @@
-smithay_client_toolkit::data_device_manager::data_device - Rust
\ No newline at end of file
+smithay_client_toolkit::data_device_manager::data_device - Rust
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_device/struct.DataDevice.html b/smithay_client_toolkit/data_device_manager/data_device/struct.DataDevice.html
index bea25abbc..bc83d0c93 100644
--- a/smithay_client_toolkit/data_device_manager/data_device/struct.DataDevice.html
+++ b/smithay_client_toolkit/data_device_manager/data_device/struct.DataDevice.html
@@ -1,25 +1,25 @@
-DataDevice in smithay_client_toolkit::data_device_manager::data_device - Rust pub struct DataDevice { /* private fields */ }
Implementations§
source§impl DataDevice
sourcepub fn data(&self) -> &DataDeviceData
sourcepub fn unset_selection(&self, serial: u32)
Unset the selection of the provided data device as a response to the event with with provided serial.
-sourcepub fn inner(&self) -> &WlDataDevice
Trait Implementations§
source§impl Debug for DataDevice
source§impl Drop for DataDevice
source§impl PartialEq for DataDevice
source§impl Eq for DataDevice
source§impl StructuralPartialEq for DataDevice
Auto Trait Implementations§
§impl Freeze for DataDevice
§impl !RefUnwindSafe for DataDevice
§impl Send for DataDevice
§impl Sync for DataDevice
§impl Unpin for DataDevice
§impl !UnwindSafe for DataDevice
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+DataDevice in smithay_client_toolkit::data_device_manager::data_device - Rust pub struct DataDevice { /* private fields */ }
Implementations§
source§impl DataDevice
sourcepub fn data(&self) -> &DataDeviceData
sourcepub fn unset_selection(&self, serial: u32)
Unset the selection of the provided data device as a response to the event with with provided serial.
+sourcepub fn inner(&self) -> &WlDataDevice
Trait Implementations§
source§impl Debug for DataDevice
source§impl Drop for DataDevice
source§impl PartialEq for DataDevice
source§impl Eq for DataDevice
source§impl StructuralPartialEq for DataDevice
Auto Trait Implementations§
§impl Freeze for DataDevice
§impl !RefUnwindSafe for DataDevice
§impl Send for DataDevice
§impl Sync for DataDevice
§impl Unpin for DataDevice
§impl !UnwindSafe for DataDevice
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_device/struct.DataDeviceData.html b/smithay_client_toolkit/data_device_manager/data_device/struct.DataDeviceData.html
index 6fbca2311..5521b3c2a 100644
--- a/smithay_client_toolkit/data_device_manager/data_device/struct.DataDeviceData.html
+++ b/smithay_client_toolkit/data_device_manager/data_device/struct.DataDeviceData.html
@@ -1,37 +1,37 @@
-DataDeviceData in smithay_client_toolkit::data_device_manager::data_device - Rust pub struct DataDeviceData { /* private fields */ }
Implementations§
source§impl DataDeviceData
sourcepub fn drag_offer(&self) -> Option<DragOffer>
Get the active dnd offer if it exists.
-sourcepub fn selection_offer(&self) -> Option<SelectionOffer>
Get the active selection offer if it exists.
-Trait Implementations§
source§impl Debug for DataDeviceData
source§impl<D> Dispatch<WlDataDevice, DataDeviceData, D> for DataDeviceManagerStatewhere
+DataDeviceData in smithay_client_toolkit::data_device_manager::data_device - Rust pub struct DataDeviceData { /* private fields */ }
Implementations§
source§impl DataDeviceData
sourcepub fn drag_offer(&self) -> Option<DragOffer>
Get the active dnd offer if it exists.
+sourcepub fn selection_offer(&self) -> Option<SelectionOffer>
Get the active selection offer if it exists.
+Trait Implementations§
source§impl Debug for DataDeviceData
source§impl<D> Dispatch<WlDataDevice, DataDeviceData, D> for DataDeviceManagerStatewhere
D: Dispatch<WlDataDevice, DataDeviceData> + Dispatch<WlDataOffer, DataOfferData> + DataDeviceHandler + DataOfferHandler + 'static,
source§fn event_created_child(
- opcode: u16,
+ opcode: u16,
qhandle: &QueueHandle<D>,
-) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read moreAuto Trait Implementations§
§impl Freeze for DataDeviceData
§impl !RefUnwindSafe for DataDeviceData
§impl Send for DataDeviceData
§impl Sync for DataDeviceData
§impl Unpin for DataDeviceData
§impl !UnwindSafe for DataDeviceData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+)Called when an event from the server is processed Read moreAuto Trait Implementations§
§impl Freeze for DataDeviceData
§impl !RefUnwindSafe for DataDeviceData
§impl Send for DataDeviceData
§impl Sync for DataDeviceData
§impl Unpin for DataDeviceData
§impl !UnwindSafe for DataDeviceData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_device/trait.DataDeviceHandler.html b/smithay_client_toolkit/data_device_manager/data_device/trait.DataDeviceHandler.html
index ef762192f..4e82e1ce7 100644
--- a/smithay_client_toolkit/data_device_manager/data_device/trait.DataDeviceHandler.html
+++ b/smithay_client_toolkit/data_device_manager/data_device/trait.DataDeviceHandler.html
@@ -1,12 +1,12 @@
-DataDeviceHandler in smithay_client_toolkit::data_device_manager::data_device - Rust pub trait DataDeviceHandler: Sized {
+DataDeviceHandler in smithay_client_toolkit::data_device_manager::data_device - Rust pub trait DataDeviceHandler: Sized {
// Required methods
fn enter(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
data_device: &WlDataDevice,
- x: f64,
- y: f64,
+ x: f64,
+ y: f64,
wl_surface: &WlSurface,
);
fn leave(
@@ -20,8 +20,8 @@
conn: &Connection,
qh: &QueueHandle<Self>,
data_device: &WlDataDevice,
- x: f64,
- y: f64,
+ x: f64,
+ y: f64,
);
fn selection(
&mut self,
@@ -42,8 +42,8 @@
conn: &Connection,
qh: &QueueHandle<Self>,
data_device: &WlDataDevice,
- x: f64,
- y: f64,
+ x: f64,
+ y: f64,
wl_surface: &WlSurface,
)
The data device pointer has entered a surface at the provided location
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_offer/enum.DataOfferError.html b/smithay_client_toolkit/data_device_manager/data_offer/enum.DataOfferError.html
index cbf016638..a9634a594 100644
--- a/smithay_client_toolkit/data_device_manager/data_offer/enum.DataOfferError.html
+++ b/smithay_client_toolkit/data_device_manager/data_offer/enum.DataOfferError.html
@@ -1,28 +1,28 @@
-DataOfferError in smithay_client_toolkit::data_device_manager::data_offer - Rust pub enum DataOfferError {
+DataOfferError in smithay_client_toolkit::data_device_manager::data_offer - Rust pub enum DataOfferError {
InvalidReceive,
- Io(Error),
+ Io(Error),
}
Expand description
An error that may occur when working with data offers.
-Variants§
Trait Implementations§
source§impl Debug for DataOfferError
source§impl Display for DataOfferError
source§impl Error for DataOfferError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for DataOfferError
§impl !RefUnwindSafe for DataOfferError
§impl Send for DataOfferError
§impl Sync for DataOfferError
§impl Unpin for DataOfferError
§impl !UnwindSafe for DataOfferError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+Variants§
Trait Implementations§
source§impl Debug for DataOfferError
source§impl Display for DataOfferError
source§impl Error for DataOfferError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for DataOfferError
§impl !RefUnwindSafe for DataOfferError
§impl Send for DataOfferError
§impl Sync for DataOfferError
§impl Unpin for DataOfferError
§impl !UnwindSafe for DataOfferError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_offer/fn.receive.html b/smithay_client_toolkit/data_device_manager/data_offer/fn.receive.html
index 1e7cd3104..b24938845 100644
--- a/smithay_client_toolkit/data_device_manager/data_offer/fn.receive.html
+++ b/smithay_client_toolkit/data_device_manager/data_offer/fn.receive.html
@@ -1,4 +1,4 @@
-receive in smithay_client_toolkit::data_device_manager::data_offer - Rust Function smithay_client_toolkit::data_device_manager::data_offer::receive
source · pub fn receive(offer: &WlDataOffer, mime_type: String) -> Result<ReadPipe>
Expand description
Request to receive the data of a given mime type.
+receive in smithay_client_toolkit::data_device_manager::data_offer - Rust pub fn receive(offer: &WlDataOffer, mime_type: String) -> Result<ReadPipe>
Expand description
Request to receive the data of a given mime type.
You can do this several times, as a reaction to motion of
the dnd cursor, or to inspect the data in order to choose your
response.
diff --git a/smithay_client_toolkit/data_device_manager/data_offer/fn.receive_to_fd.html b/smithay_client_toolkit/data_device_manager/data_offer/fn.receive_to_fd.html
index 3e73b4fce..ec052b81c 100644
--- a/smithay_client_toolkit/data_device_manager/data_offer/fn.receive_to_fd.html
+++ b/smithay_client_toolkit/data_device_manager/data_offer/fn.receive_to_fd.html
@@ -1,4 +1,4 @@
-receive_to_fd in smithay_client_toolkit::data_device_manager::data_offer - Rust pub fn receive_to_fd(offer: &WlDataOffer, mime_type: String, writefd: OwnedFd)
Expand description
Receive data to the write end of a raw file descriptor. If you have the read end, you can read from it.
+receive_to_fd in smithay_client_toolkit::data_device_manager::data_offer - Rust pub fn receive_to_fd(offer: &WlDataOffer, mime_type: String, writefd: OwnedFd)
Expand description
Receive data to the write end of a raw file descriptor. If you have the read end, you can read from it.
You can do this several times, as a reaction to motion of
the dnd cursor, or to inspect the data in order to choose your
response.
diff --git a/smithay_client_toolkit/data_device_manager/data_offer/index.html b/smithay_client_toolkit/data_device_manager/data_offer/index.html
index 0df7694d7..054547328 100644
--- a/smithay_client_toolkit/data_device_manager/data_offer/index.html
+++ b/smithay_client_toolkit/data_device_manager/data_offer/index.html
@@ -1 +1 @@
-smithay_client_toolkit::data_device_manager::data_offer - Rust
\ No newline at end of file
+smithay_client_toolkit::data_device_manager::data_offer - Rust
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_offer/struct.DataDeviceOfferInner.html b/smithay_client_toolkit/data_device_manager/data_offer/struct.DataDeviceOfferInner.html
index 15b3c70d7..1bfd49e18 100644
--- a/smithay_client_toolkit/data_device_manager/data_offer/struct.DataDeviceOfferInner.html
+++ b/smithay_client_toolkit/data_device_manager/data_offer/struct.DataDeviceOfferInner.html
@@ -1,23 +1,23 @@
-DataDeviceOfferInner in smithay_client_toolkit::data_device_manager::data_offer - Rust pub struct DataDeviceOfferInner { /* private fields */ }
Trait Implementations§
source§impl Debug for DataDeviceOfferInner
source§impl Default for DataDeviceOfferInner
source§fn default() -> DataDeviceOfferInner
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for DataDeviceOfferInner
§impl !RefUnwindSafe for DataDeviceOfferInner
§impl Send for DataDeviceOfferInner
§impl Sync for DataDeviceOfferInner
§impl Unpin for DataDeviceOfferInner
§impl !UnwindSafe for DataDeviceOfferInner
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+DataDeviceOfferInner in smithay_client_toolkit::data_device_manager::data_offer - Rust pub struct DataDeviceOfferInner { /* private fields */ }
Trait Implementations§
source§impl Debug for DataDeviceOfferInner
source§impl Default for DataDeviceOfferInner
source§fn default() -> DataDeviceOfferInner
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for DataDeviceOfferInner
§impl !RefUnwindSafe for DataDeviceOfferInner
§impl Send for DataDeviceOfferInner
§impl Sync for DataDeviceOfferInner
§impl Unpin for DataDeviceOfferInner
§impl !UnwindSafe for DataDeviceOfferInner
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_offer/struct.DataOfferData.html b/smithay_client_toolkit/data_device_manager/data_offer/struct.DataOfferData.html
index e8d69e85e..ccd03750c 100644
--- a/smithay_client_toolkit/data_device_manager/data_offer/struct.DataOfferData.html
+++ b/smithay_client_toolkit/data_device_manager/data_offer/struct.DataOfferData.html
@@ -1,35 +1,35 @@
-DataOfferData in smithay_client_toolkit::data_device_manager::data_offer - Rust pub struct DataOfferData { /* private fields */ }
Implementations§
source§impl DataOfferData
sourcepub fn with_mime_types<T, F: Fn(&[String]) -> T>(&self, callback: F) -> T
Inspect the mime types available on the given offer.
-Trait Implementations§
source§impl Debug for DataOfferData
source§impl Default for DataOfferData
source§fn default() -> DataOfferData
Returns the “default value” for a type. Read moresource§impl<D> Dispatch<WlDataOffer, DataOfferData, D> for DataDeviceManagerStatewhere
+DataOfferData in smithay_client_toolkit::data_device_manager::data_offer - Rust pub struct DataOfferData { /* private fields */ }
Implementations§
source§impl DataOfferData
sourcepub fn with_mime_types<T, F: Fn(&[String]) -> T>(&self, callback: F) -> T
Inspect the mime types available on the given offer.
+Trait Implementations§
source§impl Debug for DataOfferData
source§impl Default for DataOfferData
source§fn default() -> DataOfferData
Returns the “default value” for a type. Read moresource§impl<D> Dispatch<WlDataOffer, DataOfferData, D> for DataDeviceManagerStatewhere
D: Dispatch<WlDataOffer, DataOfferData> + DataOfferHandler,
Auto Trait Implementations§
§impl Freeze for DataOfferData
§impl RefUnwindSafe for DataOfferData
§impl Send for DataOfferData
§impl Sync for DataOfferData
§impl Unpin for DataOfferData
§impl UnwindSafe for DataOfferData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Auto Trait Implementations§
§impl Freeze for DataOfferData
§impl RefUnwindSafe for DataOfferData
§impl Send for DataOfferData
§impl Sync for DataOfferData
§impl Unpin for DataOfferData
§impl UnwindSafe for DataOfferData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_offer/struct.DragOffer.html b/smithay_client_toolkit/data_device_manager/data_offer/struct.DragOffer.html
index 46761ffbf..9bc896b6d 100644
--- a/smithay_client_toolkit/data_device_manager/data_offer/struct.DragOffer.html
+++ b/smithay_client_toolkit/data_device_manager/data_offer/struct.DragOffer.html
@@ -1,58 +1,58 @@
-DragOffer in smithay_client_toolkit::data_device_manager::data_offer - Rust pub struct DragOffer {
- pub serial: u32,
+DragOffer in smithay_client_toolkit::data_device_manager::data_offer - Rust pub struct DragOffer {
+ pub serial: u32,
pub surface: WlSurface,
- pub x: f64,
- pub y: f64,
- pub time: Option<u32>,
+ pub x: f64,
+ pub y: f64,
+ pub time: Option<u32>,
pub source_actions: DndAction,
pub selected_action: DndAction,
- pub dropped: bool,
- pub left: bool,
+ pub dropped: bool,
+ pub left: bool,
/* private fields */
-}
Fields§
§serial: u32
the serial for this data offer’s enter event
+}Fields§
§serial: u32
the serial for this data offer’s enter event
§surface: WlSurface
the surface that this DnD is active on
-§x: f64
the x position on the surface
-§y: f64
the y position on this surface
-§time: Option<u32>
the timestamp a motion event was received in millisecond granularity
+§x: f64
the x position on the surface
+§y: f64
the y position on this surface
+§time: Option<u32>
the timestamp a motion event was received in millisecond granularity
§source_actions: DndAction
the advertised drag actions
§selected_action: DndAction
the compositor selected drag action
-§dropped: bool
whether or not the drag has been dropped
-§left: bool
whether or not the drag has left
-Implementations§
source§impl DragOffer
sourcepub fn finish(&self)
sourcepub fn with_mime_types<T, F: Fn(&[String]) -> T>(&self, callback: F) -> T
Inspect the mime types available on the given offer.
+§dropped: bool
whether or not the drag has been dropped
+§left: bool
whether or not the drag has left
+Implementations§
source§impl DragOffer
sourcepub fn finish(&self)
sourcepub fn with_mime_types<T, F: Fn(&[String]) -> T>(&self, callback: F) -> T
Inspect the mime types available on the given offer.
sourcepub fn set_actions(&self, actions: DndAction, preferred_action: DndAction)
Set the accepted and preferred drag and drop actions.
This request determines the final result of the drag-and-drop operation.
If the end result is that no action is accepted, the drag source will receive wl_data_source.cancelled.
-sourcepub fn receive(&self, mime_type: String) -> Result<ReadPipe>
Receive data with the given mime type.
+
sourcepub fn receive(&self, mime_type: String) -> Result<ReadPipe>
Receive data with the given mime type.
This request may happen multiple times for different mime types, both before and after wl_data_device.drop.
Drag-and-drop destination clients may preemptively fetch data or examine it more closely to determine acceptance.
-sourcepub fn accept_mime_type(&self, serial: u32, mime_type: Option<String>)
Accept the given mime type, or None to reject the offer.
+
sourcepub fn accept_mime_type(&self, serial: u32, mime_type: Option<String>)
Accept the given mime type, or None to reject the offer.
In version 2, this request is used for feedback, but doesn’t affect the final result of the drag-and-drop operation.
In version 3, this request determines the final result of the drag-and-drop operation.
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for DragOffer
§impl !RefUnwindSafe for DragOffer
§impl Send for DragOffer
§impl Sync for DragOffer
§impl Unpin for DragOffer
§impl !UnwindSafe for DragOffer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+Trait Implementations§
Auto Trait Implementations§
§impl Freeze for DragOffer
§impl !RefUnwindSafe for DragOffer
§impl Send for DragOffer
§impl Sync for DragOffer
§impl Unpin for DragOffer
§impl !UnwindSafe for DragOffer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_offer/struct.SelectionOffer.html b/smithay_client_toolkit/data_device_manager/data_offer/struct.SelectionOffer.html
index 678046194..4b5d68438 100644
--- a/smithay_client_toolkit/data_device_manager/data_offer/struct.SelectionOffer.html
+++ b/smithay_client_toolkit/data_device_manager/data_offer/struct.SelectionOffer.html
@@ -1,27 +1,27 @@
-SelectionOffer in smithay_client_toolkit::data_device_manager::data_offer - Rust pub struct SelectionOffer { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Clone for SelectionOffer
source§fn clone(&self) -> SelectionOffer
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SelectionOffer
source§impl PartialEq for SelectionOffer
Auto Trait Implementations§
§impl Freeze for SelectionOffer
§impl !RefUnwindSafe for SelectionOffer
§impl Send for SelectionOffer
§impl Sync for SelectionOffer
§impl Unpin for SelectionOffer
§impl !UnwindSafe for SelectionOffer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+SelectionOffer in smithay_client_toolkit::data_device_manager::data_offer - Rust pub struct SelectionOffer { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Clone for SelectionOffer
source§fn clone(&self) -> SelectionOffer
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SelectionOffer
source§impl PartialEq for SelectionOffer
Auto Trait Implementations§
§impl Freeze for SelectionOffer
§impl !RefUnwindSafe for SelectionOffer
§impl Send for SelectionOffer
§impl Sync for SelectionOffer
§impl Unpin for SelectionOffer
§impl !UnwindSafe for SelectionOffer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_offer/trait.DataOfferHandler.html b/smithay_client_toolkit/data_device_manager/data_offer/trait.DataOfferHandler.html
index 92be342a8..d94111b75 100644
--- a/smithay_client_toolkit/data_device_manager/data_offer/trait.DataOfferHandler.html
+++ b/smithay_client_toolkit/data_device_manager/data_offer/trait.DataOfferHandler.html
@@ -1,4 +1,4 @@
-DataOfferHandler in smithay_client_toolkit::data_device_manager::data_offer - Rust pub trait DataOfferHandler: Sized {
+DataOfferHandler in smithay_client_toolkit::data_device_manager::data_offer - Rust pub trait DataOfferHandler: Sized {
// Required methods
fn source_actions(
&mut self,
@@ -40,4 +40,4 @@
preference, then calls set_actions & accept each one last time. Finally,
the destination may then request data to be sent and finishing the data
offer
-
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_source/index.html b/smithay_client_toolkit/data_device_manager/data_source/index.html
index 2e107a35a..208fdab3d 100644
--- a/smithay_client_toolkit/data_device_manager/data_source/index.html
+++ b/smithay_client_toolkit/data_device_manager/data_source/index.html
@@ -1 +1 @@
-smithay_client_toolkit::data_device_manager::data_source - Rust
\ No newline at end of file
+smithay_client_toolkit::data_device_manager::data_source - Rust
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_source/struct.CopyPasteSource.html b/smithay_client_toolkit/data_device_manager/data_source/struct.CopyPasteSource.html
index 4e8bf01b0..6746bde00 100644
--- a/smithay_client_toolkit/data_device_manager/data_source/struct.CopyPasteSource.html
+++ b/smithay_client_toolkit/data_device_manager/data_source/struct.CopyPasteSource.html
@@ -1,27 +1,27 @@
-CopyPasteSource in smithay_client_toolkit::data_device_manager::data_source - Rust pub struct CopyPasteSource { /* private fields */ }
Implementations§
source§impl CopyPasteSource
sourcepub fn set_selection(&self, device: &DataDevice, serial: u32)
Set the selection of the provided data device as a response to the event with with provided serial.
-sourcepub fn inner(&self) -> &WlDataSource
Trait Implementations§
source§impl Clone for CopyPasteSource
source§fn clone(&self) -> CopyPasteSource
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CopyPasteSource
source§impl Drop for CopyPasteSource
source§impl PartialEq for CopyPasteSource
source§impl Eq for CopyPasteSource
source§impl StructuralPartialEq for CopyPasteSource
Auto Trait Implementations§
§impl Freeze for CopyPasteSource
§impl !RefUnwindSafe for CopyPasteSource
§impl Send for CopyPasteSource
§impl Sync for CopyPasteSource
§impl Unpin for CopyPasteSource
§impl !UnwindSafe for CopyPasteSource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+CopyPasteSource in smithay_client_toolkit::data_device_manager::data_source - Rust pub struct CopyPasteSource { /* private fields */ }
Implementations§
source§impl CopyPasteSource
sourcepub fn set_selection(&self, device: &DataDevice, serial: u32)
Set the selection of the provided data device as a response to the event with with provided serial.
+sourcepub fn inner(&self) -> &WlDataSource
Trait Implementations§
source§impl Clone for CopyPasteSource
source§fn clone(&self) -> CopyPasteSource
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CopyPasteSource
source§impl Drop for CopyPasteSource
source§impl PartialEq for CopyPasteSource
source§impl Eq for CopyPasteSource
source§impl StructuralPartialEq for CopyPasteSource
Auto Trait Implementations§
§impl Freeze for CopyPasteSource
§impl !RefUnwindSafe for CopyPasteSource
§impl Send for CopyPasteSource
§impl Sync for CopyPasteSource
§impl Unpin for CopyPasteSource
§impl !UnwindSafe for CopyPasteSource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_source/struct.DataSourceData.html b/smithay_client_toolkit/data_device_manager/data_source/struct.DataSourceData.html
index e4c28a3bc..f7e144743 100644
--- a/smithay_client_toolkit/data_device_manager/data_source/struct.DataSourceData.html
+++ b/smithay_client_toolkit/data_device_manager/data_source/struct.DataSourceData.html
@@ -1,23 +1,23 @@
-DataSourceData in smithay_client_toolkit::data_device_manager::data_source - Rust pub struct DataSourceData {}
Trait Implementations§
source§impl DataSourceDataExt for DataSourceData
source§fn data_source_data(&self) -> &DataSourceData
source§impl Debug for DataSourceData
source§impl Default for DataSourceData
source§fn default() -> DataSourceData
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for DataSourceData
§impl RefUnwindSafe for DataSourceData
§impl Send for DataSourceData
§impl Sync for DataSourceData
§impl Unpin for DataSourceData
§impl UnwindSafe for DataSourceData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+DataSourceData in smithay_client_toolkit::data_device_manager::data_source - Rust pub struct DataSourceData {}
Trait Implementations§
source§impl DataSourceDataExt for DataSourceData
source§fn data_source_data(&self) -> &DataSourceData
source§impl Debug for DataSourceData
source§impl Default for DataSourceData
source§fn default() -> DataSourceData
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for DataSourceData
§impl RefUnwindSafe for DataSourceData
§impl Send for DataSourceData
§impl Sync for DataSourceData
§impl Unpin for DataSourceData
§impl UnwindSafe for DataSourceData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_source/struct.DragSource.html b/smithay_client_toolkit/data_device_manager/data_source/struct.DragSource.html
index d7879eaa1..33a5b6bb1 100644
--- a/smithay_client_toolkit/data_device_manager/data_source/struct.DragSource.html
+++ b/smithay_client_toolkit/data_device_manager/data_source/struct.DragSource.html
@@ -1,46 +1,46 @@
-DragSource in smithay_client_toolkit::data_device_manager::data_source - Rust pub struct DragSource { /* private fields */ }
Implementations§
source§impl DragSource
sourcepub fn start_drag(
+DragSource in smithay_client_toolkit::data_device_manager::data_source - Rust pub struct DragSource { /* private fields */ }
Implementations§
source§impl DragSource
sourcepub fn start_drag(
&self,
device: &DataDevice,
origin: &WlSurface,
- icon: Option<&WlSurface>,
- serial: u32,
+ icon: Option<&WlSurface>,
+ serial: u32,
)
Start a normal drag and drop operation.
This can be used for both intra-client DnD or inter-client Dnd.
The drag is cancelled when the DragSource is dropped.
sourcepub fn start_internal_drag(
device: &DataDevice,
origin: &WlSurface,
- icon: Option<&WlSurface>,
- serial: u32,
+ icon: Option<&WlSurface>,
+ serial: u32,
)
Start an internal drag and drop operation.
This will pass a NULL source, and the client is expected to handle data passing internally.
Only Enter, Leave, & Motion events will be sent to the client
sourcepub fn set_actions(&self, dnd_actions: DndAction)
Set the actions that this drag source supports.
This can only be done once, and must be done before the drag is started.
Trait Implementations§
source§impl Clone for DragSource
source§fn clone(&self) -> DragSource
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DragSource
source§impl Drop for DragSource
source§impl PartialEq for DragSource
source§impl Eq for DragSource
source§impl StructuralPartialEq for DragSource
Auto Trait Implementations§
§impl Freeze for DragSource
§impl !RefUnwindSafe for DragSource
§impl Send for DragSource
§impl Sync for DragSource
§impl Unpin for DragSource
§impl !UnwindSafe for DragSource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+Trait Implementations§
source§impl Clone for DragSource
source§fn clone(&self) -> DragSource
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DragSource
source§impl Drop for DragSource
source§impl PartialEq for DragSource
source§impl Eq for DragSource
source§impl StructuralPartialEq for DragSource
Auto Trait Implementations§
§impl Freeze for DragSource
§impl !RefUnwindSafe for DragSource
§impl Send for DragSource
§impl Sync for DragSource
§impl Unpin for DragSource
§impl !UnwindSafe for DragSource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_source/trait.DataSourceDataExt.html b/smithay_client_toolkit/data_device_manager/data_source/trait.DataSourceDataExt.html
index 694cb5da0..d27da8a99 100644
--- a/smithay_client_toolkit/data_device_manager/data_source/trait.DataSourceDataExt.html
+++ b/smithay_client_toolkit/data_device_manager/data_source/trait.DataSourceDataExt.html
@@ -1,4 +1,4 @@
-DataSourceDataExt in smithay_client_toolkit::data_device_manager::data_source - Rust pub trait DataSourceDataExt: Send + Sync {
+DataSourceDataExt in smithay_client_toolkit::data_device_manager::data_source - Rust pub trait DataSourceDataExt: Send + Sync {
// Required method
fn data_source_data(&self) -> &DataSourceData;
}
Required Methods§
sourcefn data_source_data(&self) -> &DataSourceData
Implementors§
source§impl DataSourceDataExt for DataSourceData
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_source/trait.DataSourceHandler.html b/smithay_client_toolkit/data_device_manager/data_source/trait.DataSourceHandler.html
index f24828429..e02ff2ba2 100644
--- a/smithay_client_toolkit/data_device_manager/data_source/trait.DataSourceHandler.html
+++ b/smithay_client_toolkit/data_device_manager/data_source/trait.DataSourceHandler.html
@@ -1,18 +1,18 @@
-DataSourceHandler in smithay_client_toolkit::data_device_manager::data_source - Rust pub trait DataSourceHandler: Sized {
+DataSourceHandler in smithay_client_toolkit::data_device_manager::data_source - Rust pub trait DataSourceHandler: Sized {
// Required methods
fn accept_mime(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
source: &WlDataSource,
- mime: Option<String>,
+ mime: Option<String>,
);
fn send_request(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
source: &WlDataSource,
- mime: String,
+ mime: String,
fd: WritePipe,
);
fn cancelled(
@@ -47,14 +47,14 @@
conn: &Connection,
qh: &QueueHandle<Self>,
source: &WlDataSource,
- mime: Option<String>,
+ mime: Option<String>,
)
This may be called multiple times, once for each accepted mime type from the destination, if any.
sourcefn send_request(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
source: &WlDataSource,
- mime: String,
+ mime: String,
fd: WritePipe,
)
The client has requested the data for this source to be sent.
Send the data, then close the fd.
@@ -86,4 +86,4 @@
source: &WlDataSource,
action: DndAction,
)An action was selected by the compositor.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/index.html b/smithay_client_toolkit/data_device_manager/index.html
index af2b95366..5a70777ed 100644
--- a/smithay_client_toolkit/data_device_manager/index.html
+++ b/smithay_client_toolkit/data_device_manager/index.html
@@ -1,3 +1,3 @@
-smithay_client_toolkit::data_device_manager - Rust Modules§
Structs§
- If the
calloop
cargo feature is enabled, this can be used
+smithay_client_toolkit::data_device_manager - Rust
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/struct.DataDeviceManagerState.html b/smithay_client_toolkit/data_device_manager/struct.DataDeviceManagerState.html
index 659551e63..83e43462c 100644
--- a/smithay_client_toolkit/data_device_manager/struct.DataDeviceManagerState.html
+++ b/smithay_client_toolkit/data_device_manager/struct.DataDeviceManagerState.html
@@ -1,17 +1,17 @@
-DataDeviceManagerState in smithay_client_toolkit::data_device_manager - Rust pub struct DataDeviceManagerState { /* private fields */ }
Implementations§
source§impl DataDeviceManagerState
sourcepub fn bind<State>(
+DataDeviceManagerState in smithay_client_toolkit::data_device_manager - Rust pub struct DataDeviceManagerState { /* private fields */ }
Implementations§
source§impl DataDeviceManagerState
sourcepub fn bind<State>(
globals: &GlobalList,
qh: &QueueHandle<State>,
-) -> Result<Self, BindError>where
- State: Dispatch<WlDataDeviceManager, GlobalData, State> + 'static,
sourcepub fn data_device_manager(&self) -> &WlDataDeviceManager
sourcepub fn create_copy_paste_source<D, T: ToString>(
+) -> Result<Self, BindError>where
+ State: Dispatch<WlDataDeviceManager, GlobalData, State> + 'static,
sourcepub fn data_device_manager(&self) -> &WlDataDeviceManager
sourcepub fn create_copy_paste_source<D, T: ToString>(
&self,
qh: &QueueHandle<D>,
- mime_types: impl IntoIterator<Item = T>,
+ mime_types: impl IntoIterator<Item = T>,
) -> CopyPasteSourcewhere
D: Dispatch<WlDataSource, DataSourceData> + 'static,
creates a data source for copy paste
-sourcepub fn create_drag_and_drop_source<D, T: ToString>(
+
sourcepub fn create_drag_and_drop_source<D, T: ToString>(
&self,
qh: &QueueHandle<D>,
- mime_types: impl IntoIterator<Item = T>,
+ mime_types: impl IntoIterator<Item = T>,
dnd_actions: DndAction,
) -> DragSourcewhere
D: Dispatch<WlDataSource, DataSourceData> + 'static,
creates a data source for drag and drop
@@ -21,12 +21,12 @@
seat: &WlSeat,
) -> DataDevicewhere
D: Dispatch<WlDataDevice, DataDeviceData> + 'static,create a new data device for a given seat
-Trait Implementations§
source§impl Debug for DataDeviceManagerState
source§impl<D> Dispatch<WlDataDevice, DataDeviceData, D> for DataDeviceManagerStatewhere
+
Trait Implementations§
source§impl Debug for DataDeviceManagerState
source§impl<D> Dispatch<WlDataDevice, DataDeviceData, D> for DataDeviceManagerStatewhere
D: Dispatch<WlDataDevice, DataDeviceData> + Dispatch<WlDataOffer, DataOfferData> + DataDeviceHandler + DataOfferHandler + 'static,
source§fn event_created_child(
- opcode: u16,
+ opcode: u16,
qhandle: &QueueHandle<D>,
-) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read moresource§impl<D> Dispatch<WlDataDeviceManager, GlobalData, D> for DataDeviceManagerStatewhere
D: Dispatch<WlDataDeviceManager, GlobalData>,
source§impl<D> Dispatch<WlDataOffer, DataOfferData, D> for DataDeviceManagerState
source§impl<D> Dispatch<WlDataOffer, DataOfferData, D> for DataDeviceManagerStatewhere
D: Dispatch<WlDataOffer, DataOfferData> + DataOfferHandler,
source§impl<D, U> Dispatch<WlDataSource, U, D> for DataDeviceManagerState
source§impl<D, U> Dispatch<WlDataSource, U, D> for DataDeviceManagerStatewhere
D: Dispatch<WlDataSource, U> + DataSourceHandler,
U: DataSourceDataExt,
source§impl ProvidesBoundGlobal<WlDataDeviceManager, 3> for DataDeviceManagerState
source§fn bound_global(&self) -> Result<WlDataDeviceManager, GlobalError>
source§fn with_min_version(&self, version: u32) -> Result<I, GlobalError>
Auto Trait Implementations§
§impl Freeze for DataDeviceManagerState
§impl !RefUnwindSafe for DataDeviceManagerState
§impl Send for DataDeviceManagerState
§impl Sync for DataDeviceManagerState
§impl Unpin for DataDeviceManagerState
§impl !UnwindSafe for DataDeviceManagerState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
source§impl ProvidesBoundGlobal<WlDataDeviceManager, 3> for DataDeviceManagerState
source§fn bound_global(&self) -> Result<WlDataDeviceManager, GlobalError>
source§fn with_min_version(&self, version: u32) -> Result<I, GlobalError>
Auto Trait Implementations§
§impl Freeze for DataDeviceManagerState
§impl !RefUnwindSafe for DataDeviceManagerState
§impl Send for DataDeviceManagerState
§impl Sync for DataDeviceManagerState
§impl Unpin for DataDeviceManagerState
§impl !UnwindSafe for DataDeviceManagerState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/struct.ReadPipe.html b/smithay_client_toolkit/data_device_manager/struct.ReadPipe.html
index 9b770bc59..e915f40b9 100644
--- a/smithay_client_toolkit/data_device_manager/struct.ReadPipe.html
+++ b/smithay_client_toolkit/data_device_manager/struct.ReadPipe.html
@@ -1,53 +1,53 @@
-ReadPipe in smithay_client_toolkit::data_device_manager - Rust pub struct ReadPipe { /* private fields */ }
Expand description
If the calloop
cargo feature is enabled, this can be used
+
ReadPipe in smithay_client_toolkit::data_device_manager - Rust pub struct ReadPipe { /* private fields */ }
Expand description
If the calloop
cargo feature is enabled, this can be used
as an EventSource
in a calloop event loop.
-Trait Implementations§
source§impl AsFd for ReadPipe
source§fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read moresource§impl EventSource for ReadPipe
source§type Error = Error
The error type returned from
-process_events()
(not the user callback!).source§fn process_events<F>(
+
Trait Implementations§
source§impl AsFd for ReadPipe
source§fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read moresource§impl EventSource for ReadPipe
source§type Error = Error
The error type returned from
+process_events()
(not the user callback!).source§fn process_events<F>(
&mut self,
readiness: Readiness,
token: Token,
callback: F,
-) -> Result<PostAction>
Process any relevant events Read moresource§fn register(
&mut self,
poll: &mut Poll,
token_factory: &mut TokenFactory,
-) -> Result<()>
Register yourself to this poll instance Read moresource§fn reregister(
+) -> Result<()>
Register yourself to this poll instance Read moresource§fn reregister(
&mut self,
poll: &mut Poll,
token_factory: &mut TokenFactory,
-) -> Result<()>
Re-register your file descriptors Read moresource§fn unregister(&mut self, poll: &mut Poll) -> Result<()>
Unregister your file descriptors Read more§const NEEDS_EXTRA_LIFECYCLE_EVENTS: bool = false
Whether this source needs to be sent the [EventSource::before_sleep
]
+) -> Result<()>Re-register your file descriptors Read moresource§fn unregister(&mut self, poll: &mut Poll) -> Result<()>
Unregister your file descriptors Read more§const NEEDS_EXTRA_LIFECYCLE_EVENTS: bool = false
Whether this source needs to be sent the [EventSource::before_sleep
]
and [EventSource::before_handle_events
] notifications. These are opt-in because
-they require more expensive checks, and almost all sources will not need these notifications§fn before_sleep(&mut self) -> Result<Option<(Readiness, Token)>, Error>
Notification that a single poll
is about to begin Read more§fn before_handle_events(&mut self, events: EventIterator<'_>)
Notification that polling is complete, and [EventSource::process_events
] will
+they require more expensive checks, and almost all sources will not need these notifications§fn before_sleep(&mut self) -> Result<Option<(Readiness, Token)>, Error>
Notification that a single poll
is about to begin Read more§fn before_handle_events(&mut self, events: EventIterator<'_>)
Notification that polling is complete, and [EventSource::process_events
] will
be called with the given events for this source. The iterator may be empty,
-which indicates that no events were generated for this source Read moresource§impl IntoRawFd for ReadPipe
source§fn into_raw_fd(self) -> RawFd
Consumes this object, returning the raw underlying file descriptor. Read moresource§impl Read for ReadPipe
source§fn read(&mut self, buf: &mut [u8]) -> Result<usize>
Pull some bytes from this source into the specified buffer, returning
-how many bytes were read. Read more1.36.0 · source§fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error>
Like read
, except that it reads into a slice of buffers. Read moresource§fn is_read_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (can_vector
)1.0.0 · source§fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Error>
Reads all bytes until EOF in this source, placing them into buf
. Read more1.0.0 · source§fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>
Reads all bytes until EOF in this source, appending them to buf
. Read more1.6.0 · source§fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>
Reads the exact number of bytes required to fill buf
. Read moresource§fn read_buf(&mut self, buf: BorrowedCursor<'_>) -> Result<(), Error>
🔬This is a nightly-only experimental API. (read_buf
)Pull some bytes from this source into the specified buffer. Read moresource§fn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>
🔬This is a nightly-only experimental API. (read_buf
)Reads the exact number of bytes required to fill cursor
. Read more1.0.0 · source§fn by_ref(&mut self) -> &mut Selfwhere
- Self: Sized,
Creates a “by reference” adaptor for this instance of Read
. Read moreAuto Trait Implementations§
§impl Freeze for ReadPipe
§impl RefUnwindSafe for ReadPipe
§impl Send for ReadPipe
§impl Sync for ReadPipe
§impl Unpin for ReadPipe
§impl UnwindSafe for ReadPipe
Blanket Implementations§
§impl<T> AsSource for Twhere
- T: AsFd,
§fn source(&self) -> BorrowedFd<'_>
Returns the borrowed file descriptor.source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+which indicates that no events were generated for this source Read moresource§impl IntoRawFd for ReadPipe
source§fn into_raw_fd(self) -> RawFd
Consumes this object, returning the raw underlying file descriptor. Read moresource§impl Read for ReadPipe
source§fn read(&mut self, buf: &mut [u8]) -> Result<usize>
Pull some bytes from this source into the specified buffer, returning
+how many bytes were read. Read more1.36.0 · source§fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error>
Like read
, except that it reads into a slice of buffers. Read moresource§fn is_read_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (can_vector
)1.0.0 · source§fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Error>
Reads all bytes until EOF in this source, placing them into buf
. Read more1.0.0 · source§fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>
Reads all bytes until EOF in this source, appending them to buf
. Read more1.6.0 · source§fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>
Reads the exact number of bytes required to fill buf
. Read moresource§fn read_buf(&mut self, buf: BorrowedCursor<'_>) -> Result<(), Error>
🔬This is a nightly-only experimental API. (read_buf
)Pull some bytes from this source into the specified buffer. Read moresource§fn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>
🔬This is a nightly-only experimental API. (read_buf
)Reads the exact number of bytes required to fill cursor
. Read more1.0.0 · source§fn by_ref(&mut self) -> &mut Selfwhere
+ Self: Sized,
Creates a “by reference” adaptor for this instance of Read
. Read moreAuto Trait Implementations§
§impl Freeze for ReadPipe
§impl RefUnwindSafe for ReadPipe
§impl Send for ReadPipe
§impl Sync for ReadPipe
§impl Unpin for ReadPipe
§impl UnwindSafe for ReadPipe
Blanket Implementations§
§impl<T> AsSource for Twhere
+ T: AsFd,
§fn source(&self) -> BorrowedFd<'_>
Returns the borrowed file descriptor.source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
-[WithDispatch
] wrapper. Read more
\ No newline at end of file
+[WithDispatch
] wrapper. Read more
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/struct.WritePipe.html b/smithay_client_toolkit/data_device_manager/struct.WritePipe.html
index dfbe5f1a1..3b218bf5b 100644
--- a/smithay_client_toolkit/data_device_manager/struct.WritePipe.html
+++ b/smithay_client_toolkit/data_device_manager/struct.WritePipe.html
@@ -1,50 +1,50 @@
-WritePipe in smithay_client_toolkit::data_device_manager - Rust pub struct WritePipe { /* private fields */ }
Expand description
If the calloop
cargo feature is enabled, this can be used
+
WritePipe in smithay_client_toolkit::data_device_manager - Rust pub struct WritePipe { /* private fields */ }
Expand description
If the calloop
cargo feature is enabled, this can be used
as an EventSource
in a calloop event loop.
-Trait Implementations§
source§impl AsFd for WritePipe
source§fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read moresource§impl EventSource for WritePipe
source§type Error = Error
The error type returned from
-process_events()
(not the user callback!).source§fn process_events<F>(
+
Trait Implementations§
source§impl AsFd for WritePipe
source§fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read moresource§impl EventSource for WritePipe
source§type Error = Error
The error type returned from
+process_events()
(not the user callback!).source§fn process_events<F>(
&mut self,
readiness: Readiness,
token: Token,
callback: F,
-) -> Result<PostAction>
Process any relevant events Read moresource§fn register(
&mut self,
poll: &mut Poll,
token_factory: &mut TokenFactory,
-) -> Result<()>
Register yourself to this poll instance Read moresource§fn reregister(
+) -> Result<()>
Register yourself to this poll instance Read moresource§fn reregister(
&mut self,
poll: &mut Poll,
token_factory: &mut TokenFactory,
-) -> Result<()>
Re-register your file descriptors Read moresource§fn unregister(&mut self, poll: &mut Poll) -> Result<()>
Unregister your file descriptors Read more§const NEEDS_EXTRA_LIFECYCLE_EVENTS: bool = false
Whether this source needs to be sent the [EventSource::before_sleep
]
+) -> Result<()>Re-register your file descriptors Read moresource§fn unregister(&mut self, poll: &mut Poll) -> Result<()>
Unregister your file descriptors Read more§const NEEDS_EXTRA_LIFECYCLE_EVENTS: bool = false
Whether this source needs to be sent the [EventSource::before_sleep
]
and [EventSource::before_handle_events
] notifications. These are opt-in because
-they require more expensive checks, and almost all sources will not need these notifications§fn before_sleep(&mut self) -> Result<Option<(Readiness, Token)>, Error>
Notification that a single poll
is about to begin Read more§fn before_handle_events(&mut self, events: EventIterator<'_>)
Notification that polling is complete, and [EventSource::process_events
] will
+they require more expensive checks, and almost all sources will not need these notifications§fn before_sleep(&mut self) -> Result<Option<(Readiness, Token)>, Error>
Notification that a single poll
is about to begin Read more§fn before_handle_events(&mut self, events: EventIterator<'_>)
Notification that polling is complete, and [EventSource::process_events
] will
be called with the given events for this source. The iterator may be empty,
-which indicates that no events were generated for this source Read moresource§impl IntoRawFd for WritePipe
source§fn into_raw_fd(self) -> RawFd
Consumes this object, returning the raw underlying file descriptor. Read moresource§impl Write for WritePipe
source§fn write(&mut self, buf: &[u8]) -> Result<usize>
Writes a buffer into this writer, returning how many bytes were written. Read moresource§fn flush(&mut self) -> Result<()>
Flushes this output stream, ensuring that all intermediately buffered
-contents reach their destination. Read moresource§fn is_write_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (can_vector
)1.0.0 · source§fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
Attempts to write an entire buffer into this writer. Read moresource§fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
🔬This is a nightly-only experimental API. (write_all_vectored
)Attempts to write multiple buffers into this writer. Read moreAuto Trait Implementations§
§impl Freeze for WritePipe
§impl RefUnwindSafe for WritePipe
§impl Send for WritePipe
§impl Sync for WritePipe
§impl Unpin for WritePipe
§impl UnwindSafe for WritePipe
Blanket Implementations§
§impl<T> AsSource for Twhere
- T: AsFd,
§fn source(&self) -> BorrowedFd<'_>
Returns the borrowed file descriptor.source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+which indicates that no events were generated for this source Read moresource§impl IntoRawFd for WritePipe
source§fn into_raw_fd(self) -> RawFd
Consumes this object, returning the raw underlying file descriptor. Read moresource§impl Write for WritePipe
source§fn write(&mut self, buf: &[u8]) -> Result<usize>
Writes a buffer into this writer, returning how many bytes were written. Read moresource§fn flush(&mut self) -> Result<()>
Flushes this output stream, ensuring that all intermediately buffered
+contents reach their destination. Read moresource§fn is_write_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (can_vector
)1.0.0 · source§fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
Attempts to write an entire buffer into this writer. Read moresource§fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
🔬This is a nightly-only experimental API. (write_all_vectored
)Attempts to write multiple buffers into this writer. Read moreAuto Trait Implementations§
§impl Freeze for WritePipe
§impl RefUnwindSafe for WritePipe
§impl Send for WritePipe
§impl Sync for WritePipe
§impl Unpin for WritePipe
§impl UnwindSafe for WritePipe
Blanket Implementations§
§impl<T> AsSource for Twhere
+ T: AsFd,
§fn source(&self) -> BorrowedFd<'_>
Returns the borrowed file descriptor.source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
-[WithDispatch
] wrapper. Read more
\ No newline at end of file
+[WithDispatch
] wrapper. Read more
\ No newline at end of file
diff --git a/smithay_client_toolkit/dmabuf/index.html b/smithay_client_toolkit/dmabuf/index.html
index db0d4a1e9..cf94b0ef4 100644
--- a/smithay_client_toolkit/dmabuf/index.html
+++ b/smithay_client_toolkit/dmabuf/index.html
@@ -1 +1 @@
-smithay_client_toolkit::dmabuf - Rust Module smithay_client_toolkit::dmabuf
source · Structs§
- Description of supported and preferred dmabuf formats
- A preference tranche of dmabuf formats
- A single dmabuf format/modifier pair
- Builder for a dmabuf backed buffer
- A handler for [
zwp_linux_dmabuf_v1::ZwpLinuxDmabufV1
]
Traits§
\ No newline at end of file
+smithay_client_toolkit::dmabuf - Rust
\ No newline at end of file
diff --git a/smithay_client_toolkit/dmabuf/struct.DmabufFeedback.html b/smithay_client_toolkit/dmabuf/struct.DmabufFeedback.html
index 29e395b60..00ab7e224 100644
--- a/smithay_client_toolkit/dmabuf/struct.DmabufFeedback.html
+++ b/smithay_client_toolkit/dmabuf/struct.DmabufFeedback.html
@@ -1,27 +1,27 @@
-DmabufFeedback in smithay_client_toolkit::dmabuf - Rust Struct smithay_client_toolkit::dmabuf::DmabufFeedback
source · pub struct DmabufFeedback { /* private fields */ }
Expand description
Description of supported and preferred dmabuf formats
+DmabufFeedback in smithay_client_toolkit::dmabuf - Rust pub struct DmabufFeedback { /* private fields */ }
Expand description
Description of supported and preferred dmabuf formats
Implementations§
source§impl DmabufFeedback
sourcepub fn format_table(&self) -> &[DmabufFormat]
Format/modifier pairs
sourcepub fn main_device(&self) -> dev_t
dev_t
value for main device. Buffers must be importable from main device.
sourcepub fn tranches(&self) -> &[DmabufFeedbackTranche]
Tranches in descending order of preference
-Trait Implementations§
source§impl Debug for DmabufFeedback
source§impl Default for DmabufFeedback
source§fn default() -> DmabufFeedback
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for DmabufFeedback
§impl RefUnwindSafe for DmabufFeedback
§impl Send for DmabufFeedback
§impl Sync for DmabufFeedback
§impl Unpin for DmabufFeedback
§impl UnwindSafe for DmabufFeedback
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+Trait Implementations§
source§impl Debug for DmabufFeedback
source§impl Default for DmabufFeedback
source§fn default() -> DmabufFeedback
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for DmabufFeedback
§impl RefUnwindSafe for DmabufFeedback
§impl Send for DmabufFeedback
§impl Sync for DmabufFeedback
§impl Unpin for DmabufFeedback
§impl UnwindSafe for DmabufFeedback
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/dmabuf/struct.DmabufFeedbackTranche.html b/smithay_client_toolkit/dmabuf/struct.DmabufFeedbackTranche.html
index 920e2d02e..1f13745d3 100644
--- a/smithay_client_toolkit/dmabuf/struct.DmabufFeedbackTranche.html
+++ b/smithay_client_toolkit/dmabuf/struct.DmabufFeedbackTranche.html
@@ -1,34 +1,34 @@
-DmabufFeedbackTranche in smithay_client_toolkit::dmabuf - Rust pub struct DmabufFeedbackTranche {
+DmabufFeedbackTranche in smithay_client_toolkit::dmabuf - Rust pub struct DmabufFeedbackTranche {
pub device: dev_t,
pub flags: WEnum<TrancheFlags>,
- pub formats: Vec<u16>,
+ pub formats: Vec<u16>,
}
Expand description
A preference tranche of dmabuf formats
Fields§
§device: dev_t
dev_t
value for preferred target device. May be scan-out or
renderer device.
§flags: WEnum<TrancheFlags>
Flags for tranche
-§formats: Vec<u16>
Indices of formats in the format table
-Trait Implementations§
source§impl Clone for DmabufFeedbackTranche
source§fn clone(&self) -> DmabufFeedbackTranche
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DmabufFeedbackTranche
source§impl Default for DmabufFeedbackTranche
source§fn default() -> DmabufFeedbackTranche
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for DmabufFeedbackTranche
§impl RefUnwindSafe for DmabufFeedbackTranche
§impl Send for DmabufFeedbackTranche
§impl Sync for DmabufFeedbackTranche
§impl Unpin for DmabufFeedbackTranche
§impl UnwindSafe for DmabufFeedbackTranche
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+§formats: Vec<u16>
Indices of formats in the format table
+Trait Implementations§
source§impl Clone for DmabufFeedbackTranche
source§fn clone(&self) -> DmabufFeedbackTranche
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DmabufFeedbackTranche
source§impl Default for DmabufFeedbackTranche
source§fn default() -> DmabufFeedbackTranche
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for DmabufFeedbackTranche
§impl RefUnwindSafe for DmabufFeedbackTranche
§impl Send for DmabufFeedbackTranche
§impl Sync for DmabufFeedbackTranche
§impl Unpin for DmabufFeedbackTranche
§impl UnwindSafe for DmabufFeedbackTranche
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/dmabuf/struct.DmabufFormat.html b/smithay_client_toolkit/dmabuf/struct.DmabufFormat.html
index 7988e0e7a..a4ee74638 100644
--- a/smithay_client_toolkit/dmabuf/struct.DmabufFormat.html
+++ b/smithay_client_toolkit/dmabuf/struct.DmabufFormat.html
@@ -1,32 +1,32 @@
-DmabufFormat in smithay_client_toolkit::dmabuf - Rust Struct smithay_client_toolkit::dmabuf::DmabufFormat
source · #[repr(C)]pub struct DmabufFormat {
- pub format: u32,
- pub modifier: u64,
+DmabufFormat in smithay_client_toolkit::dmabuf - Rust