pub fn capability(&self, cap: Capability) -> io::Result<u64> {
        let mut call = ffi::get_cap {
            capability: cap as u64,
            value: 0,
        };
        impl DrmIoctl for ffi::get_cap {
            fn request() -> c_ulong { DRM_IOCTL_GET_CAP }
        }

        try!(self.ioctl(&mut call));
        Ok(call.value)
    }
/// Get the capability or value associated with a given capability.
Get the capability or value associated with a given capability.
Get the capability or value associated with a given capability .
pub fn capability(&self, cap: Capability) -> io::Result<u64> {
        let mut call = ffi::get_cap {
            capability: cap as u64,
            value: 0,
        };
        impl DrmIoctl for ffi::get_cap {
            fn request() -> c_ulong { DRM_IOCTL_GET_CAP }
        }
        try!(self.ioctl(&mut call));
        Ok(call.value)
    }
pub fn capability ( & self , cap : Capability ) -> io :: Result < u64 > { let mut call = ffi :: get_cap { capability : cap as u64 , value : 0 , } ; impl DrmIoctl for ffi :: get_cap { fn request ( ) -> c_ulong { DRM_IOCTL_GET_CAP } } try ! ( self ioctl ( mut call ) ) ; Ok ( call . value ) }
Get the capability or value associated with a given capability.
Get the capability or value associated with a given capability .
&self
cap
Capability