Struct evdi::device_node::DeviceNode [−][src]
pub struct DeviceNode { /* fields omitted */ }Represents a device node (/dev/dri/card*).
Implementations
impl DeviceNode[src]
impl DeviceNode[src]pub fn get() -> Option<Self>[src]
pub fn get() -> Option<Self>[src]Returns an evdi device node if one is available.
If no device is available you will need to run Device::add() with superuser permissions.
pub fn status(&self) -> DeviceNodeStatus[src]
pub fn status(&self) -> DeviceNodeStatus[src]Check if a device node is an evdi device node, is a different device node, or doesn’t exist.
pub fn open(&self) -> Result<UnconnectedHandle, OpenDeviceError>[src]
pub fn open(&self) -> Result<UnconnectedHandle, OpenDeviceError>[src]Open an evdi device node.
Returns None if we fail to open the device, which may be because the device isn’t an evdi device node.
pub fn list_available() -> Result<Vec<Self>>[src]
pub fn list_available() -> Result<Vec<Self>>[src]List all evdi device nodes that have available status in a stable order
pub fn add() -> bool[src]
pub fn add() -> bool[src]Tell the kernel module to create a new evdi device node.
Requires superuser permissions.
pub fn remove_all() -> Result<()>[src]
pub fn remove_all() -> Result<()>[src]Remove all evdi device nodes.
Requires superuser permissions.
Trait Implementations
impl Clone for DeviceNode[src]
impl Clone for DeviceNode[src]fn clone(&self) -> DeviceNode[src]
fn clone(&self) -> DeviceNode[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for DeviceNode[src]
impl Debug for DeviceNode[src]impl Ord for DeviceNode[src]
impl Ord for DeviceNode[src]impl PartialEq<DeviceNode> for DeviceNode[src]
impl PartialEq<DeviceNode> for DeviceNode[src]fn eq(&self, other: &DeviceNode) -> bool[src]
fn eq(&self, other: &DeviceNode) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &DeviceNode) -> bool[src]
fn ne(&self, other: &DeviceNode) -> bool[src]This method tests for !=.
impl PartialOrd<DeviceNode> for DeviceNode[src]
impl PartialOrd<DeviceNode> for DeviceNode[src]fn partial_cmp(&self, other: &Self) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Eq for DeviceNode[src]
impl StructuralEq for DeviceNode[src]
impl StructuralPartialEq for DeviceNode[src]
Auto Trait Implementations
impl RefUnwindSafe for DeviceNode
impl Send for DeviceNode
impl Sync for DeviceNode
impl Unpin for DeviceNode
impl UnwindSafe for DeviceNode
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,