pub struct CoreHandle { /* private fields */ }
Expand description

Handle that’s given out to a module to perform actions on the core

Implementations

Wraps core reference with a handle, used for all core features to be able to bypass feature checking

Checks if module is allowed to use this feature

Warns if module is using feature it hasn’t reported

Clones the handle for specified module

Returns core reference

Returns config reference

Returns module manager reference

Returns socket manager reference

Returns current stack lock

Sends core event to all modules, spawns a separate thread to do it, so doesn’t block current thread

Gets current panel stack

Gets panel that’s currently on top of the stack

Returns a button from current screen on specified position

Sets button to current screen with specified position

Clears button from current screen on specified position

Adds component onto a button, returns success boolean

Gets component values from a component on a button

Gets component values from component on a button, but with paths for easier interaction with values

Sets component values based on changes for component on a button

Adds new array element to a component value

Removes element from array in component value

Sets value based on path for component value

Removes component from a button

Creates a new button taking provided one as an example and makes all responsible modules handle the paste action

Pushes new panel into the stack

Pops panel from stack

Returns first panel of the stack for saving purposes

Returns first panel of the stack that’s already been serialized

Clears the stack and loads provided panel into the stack

Clears the stack, attempts to deserialize provided panel value into an actual panel and then pushes it into the stack

Triggers button down event on all modules

Triggers button up event on all modules

Triggers button action event for modules that are related to components of the button

Renders what current screen would look like into DynamicImage map

Renders what specified button would look like into DynamicImage

Replaces current screen with specified one

Sets brightness of the streamdeck to specified (Range from 0 to 100)

Commits all changes to layout to device config so it can be later saved

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Convert the source color to the destination color using the specified method Read more

Convert the source color to the destination color using the bradford method by default Read more

Gets the TypeId of self. Read more

The error type produced by a failed conversion.

Convert the given value into an approximately equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an approximately equivalent representation.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Approximate the subject with the default scheme.

Approximate the subject with a specific scheme.

Approximate the subject to a given type with the default scheme.

Approximate the subject to a given type with a specific scheme.

Convert the subject to a given type.

Attempt to convert the subject to a given type.

Attempt a value conversion of the subject to a given type.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert into T with values clamped to the color defined bounds Read more

Convert into T. The resulting color might be invalid in its color space Read more

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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)

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

The error type produced by a failed conversion.

Convert the given value into the subject type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the subject into the destination type.

The type returned in the event of a conversion error.

Performs the conversion.

Convert into T, returning ok if the color is inside of its defined range, otherwise an OutOfBounds error is returned which contains the unclamped color. Read more

The error type produced by a failed conversion.

Convert the given value into an exactly equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an exactly equivalent representation.