Struct devices::virtio::input::VirtioInputConfig
source · pub struct VirtioInputConfig {
select: u8,
subsel: u8,
device_ids: virtio_input_device_ids,
name: String,
serial_name: String,
properties: virtio_input_bitmap,
supported_events: BTreeMap<u16, virtio_input_bitmap>,
axis_info: BTreeMap<u16, virtio_input_absinfo>,
}
Fields§
§select: u8
§subsel: u8
§device_ids: virtio_input_device_ids
§name: String
§serial_name: String
§properties: virtio_input_bitmap
§supported_events: BTreeMap<u16, virtio_input_bitmap>
§axis_info: BTreeMap<u16, virtio_input_absinfo>
Implementations§
source§impl VirtioInputConfig
impl VirtioInputConfig
fn new( device_ids: virtio_input_device_ids, name: String, serial_name: String, properties: virtio_input_bitmap, supported_events: BTreeMap<u16, virtio_input_bitmap>, axis_info: BTreeMap<u16, virtio_input_absinfo> ) -> VirtioInputConfig
fn from_evdev<T: AsRawDescriptor>(source: &T) -> Result<VirtioInputConfig>
fn build_config_memory(&self) -> virtio_input_config
fn read(&self, offset: usize, data: &mut [u8])
fn write(&mut self, offset: usize, data: &[u8])
Trait Implementations§
source§impl Clone for VirtioInputConfig
impl Clone for VirtioInputConfig
source§fn clone(&self) -> VirtioInputConfig
fn clone(&self) -> VirtioInputConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VirtioInputConfig
impl Debug for VirtioInputConfig
source§impl<'de> Deserialize<'de> for VirtioInputConfig
impl<'de> Deserialize<'de> for VirtioInputConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for VirtioInputConfig
impl Send for VirtioInputConfig
impl Sync for VirtioInputConfig
impl Unpin for VirtioInputConfig
impl UnwindSafe for VirtioInputConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.