pub fn busid(&self) -> io::Result<String> {
        let mut unique = ffi::unique::default();
        impl DrmIoctl for ffi::unique {
            fn request() -> c_ulong { DRM_IOCTL_GET_UNIQUE }
        }

        try!(self.ioctl(&mut unique));
        if unique.unique_len > 0 {
            let mut s: Vec<u8> = repeat(0).collect();
            
            unique.unique = s.as_mut_ptr() as *mut c_char;
            try!(self.ioctl(&mut unique));

            String::from_utf8(s)
                .map_err(|err| io::Error::new(io::ErrorKind::InvalidData, err))
        } else {
            Ok(String::new())
        }
    }
/// Fetches the busid of the card.
///
/// Dev notes: on my system this is an empty string. In `xf86drm.h`
/// there are functions that use this string to open the device.
/// I assume it might be realted to  path names in `/sys/`.
Fetches the busid of the card.
Dev notes: on my system this is an empty string. In `xf86drm.h`
there are functions that use this string to open the device.
I assume it might be realted to  path names in `/sys/`.
Fetches the busid of the card . Dev notes : on my system this is an empty string . In ` xf86drm . h ` there are functions that use this string to open the device . I assume it might be realted to path names in ` / sys / ` .
pub fn busid(&self) -> io::Result<String> {
        let mut unique = ffi::unique::default();
        impl DrmIoctl for ffi::unique {
            fn request() -> c_ulong { DRM_IOCTL_GET_UNIQUE }
        }
        try!(self.ioctl(&mut unique));
        if unique.unique_len > 0 {
            let mut s: Vec<u8> = repeat(0).collect();
            unique.unique = s.as_mut_ptr() as *mut c_char;
            try!(self.ioctl(&mut unique));
            String::from_utf8(s)
                .map_err(|err| io::Error::new(io::ErrorKind::InvalidData, err))
        } else {
            Ok(String::new())
        }
    }
pub fn busid ( & self ) -> io :: Result < String > { let mut unique = ffi :: unique :: default ( ) ; impl DrmIoctl for ffi :: unique { fn request ( ) -> c_ulong { DRM_IOCTL_GET_UNIQUE } } try ! ( self ioctl ( mut unique ) ) ; if unique . unique_len > 0 { let mut s : Vec < u8 > = repeat ( 0 ) . collect ( ) ; unique . unique = s . as_mut_ptr ( ) as * mut c_char ; try ! ( self ioctl ( mut unique ) ) ; String :: from_utf8 ( s ) . map_err ( | err | io :: Error :: new ( io :: ErrorKind :: InvalidData , err ) ) } else { Ok ( String :: new ( ) ) } }
Fetches the busid of the card.
Fetches the busid of the card .
&self