Struct xcb::x::InternAtom[][src]

pub struct InternAtom<'a> {
    pub only_if_exists: bool,
    pub name: &'a str,
}
Expand description

Get atom identifier by name

Retrieves the identifier (xcb_atom_t TODO) for the atom with the specified name. Atoms are used in protocols like EWMH, for example to store window titles (_NET_WM_NAME atom) as property of a window.

If only_if_exists is 0, the atom will be created if it does not already exist. If only_if_exists is 1, XCB_ATOM_NONE will be returned if the atom does not yet exist.

Fields

only_if_exists: bool

Return a valid atom id only if the atom already exists.

name: &'a str

The name of the atom.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Actual implementation of the request sending Read more

The default cookie associated to this request.

false if the request returns a reply, true otherwise.

Reply associated with the request

Default cookie type for the request, as returned by Connection::send_request.

Unchecked cookie type for the request, as returned by Connection::send_request_unchecked.

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.