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.
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.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.