Struct surfman::platform::unix::wayland::connection::Connection[][src]

pub struct Connection { /* fields omitted */ }
Expand description

A connection to the Wayland server.

Implementations

Connects to the default Wayland server.

Wraps an existing EGL display in a Connection.

The display is not retained, as there is no way to do this in the EGL API. Therefore, it is the caller’s responsibility to ensure that the EGL display remains alive as long as the connection is.

Returns the underlying native connection.

Returns the OpenGL API flavor that this connection supports (OpenGL or OpenGL ES).

Returns the “best” adapter on this system, preferring high-performance hardware adapters.

This is an alias for Connection::create_hardware_adapter().

Returns the “best” adapter on this system, preferring high-performance hardware adapters.

Returns the “best” adapter on this system, preferring low-power hardware adapters.

Returns the “best” adapter on this system, preferring software adapters.

Opens the hardware device corresponding to the given adapter.

Device handles are local to a single thread.

Opens the hardware device corresponding to the adapter wrapped in the given native device.

This is present for compatibility with other backends.

Opens the display connection corresponding to the given winit window.

Creates a native widget type from the given winit window.

This type can be later used to create surfaces that render to the window.

Create a native widget from a raw pointer

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The adapter type associated with this connection.

The device type associated with this connection.

The native type associated with this connection.

The native device type associated with this connection.

The native widget type associated with this connection.

Connects to the default display.

Returns the native connection corresponding to this connection.

Returns the OpenGL API flavor that this connection supports (OpenGL or OpenGL ES).

Returns the “best” adapter on this system, preferring high-performance hardware adapters. Read more

Returns the “best” adapter on this system, preferring high-performance hardware adapters.

Returns the “best” adapter on this system, preferring low-power hardware adapters.

Returns the “best” adapter on this system, preferring software adapters.

Opens a device.

Wraps an existing native device type in a device.

Opens the display connection corresponding to the given winit window.

Creates a native widget type from the given winit window. Read more

Creates a native widget from a raw pointer

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.