[][src]Struct libvibrant::instance::Instance

pub struct Instance { /* fields omitted */ }

A libvibrant instance. Holds a connection the X server and a list of displays that have available controllers.

Implementations

impl Instance[src]

pub fn new() -> Result<Instance, Error>[src]

Creates a new vibrant instance with a connection to the default X server.

Errors

Returns an error if a connection could not be established to the server.

pub fn from_display_name(name: &CStr) -> Result<Instance, Error>[src]

Creates a new vibrant instance with a connection to the specified X server.

Errors

Returns an error if a connection could not be established to the server.

pub fn controllers(&self) -> &[Box<dyn Controller>][src]

Returns a list of controllers that correspond to displays that have a controllable backend.

pub fn xcon(&self) -> *mut Display[src]

Returns a pointer to the X display.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.