Struct cnx::Cnx[][src]

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

The main object, used to instantiate an instance of Cnx.

Widgets can be added using the add_widget() method. Once configured, the run() method will take ownership of the instance and run it until the process is killed or an error occurs.

Implementations

Creates a new Cnx instance.

This creates a new Cnx instance at either the top or bottom of the screen, depending on the value of the Position enum.

Adds a widget to the Cnx instance.

Takes ownership of the Widget and adds it to the Cnx instance to the right of any existing widgets.

Runs the Cnx instance.

This method takes ownership of the Cnx instance and runs it until either the process is terminated, or an internal error is returned.

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 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.