pub trait WindowBuilderExtWayland: WindowBuilderPrivate {
// Required method
fn with_name(
self,
general: impl Into<String>,
instance: impl Into<String>,
) -> Self;
}
Expand description
Additional methods on WindowBuilder
that are specific to Wayland.
Required Methods§
Sourcefn with_name(
self,
general: impl Into<String>,
instance: impl Into<String>,
) -> Self
fn with_name( self, general: impl Into<String>, instance: impl Into<String>, ) -> Self
Build window with the given name.
The general
name sets an application ID, which should match the .desktop
file destributed with your program. The instance
is a no-op
.
For details about application ID conventions, see the Desktop Entry Spec
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.