[−][src]Struct libvibrant::instance::Instance
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
impl !RefUnwindSafe for Instance
[src]
impl !Send for Instance
[src]
impl !Sync for Instance
[src]
impl Unpin for Instance
[src]
impl !UnwindSafe for Instance
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,