pub struct Config {
pub device_id: Option<u32>,
pub device_type: Option<DeviceType>,
pub context: Option<Context>,
pub target: Option<Target>,
pub viewport: Option<Viewport>,
pub dispatch_policy: Option<DispatchPolicy>,
pub scroll_v_range: Option<Axis>,
pub scroll_h_range: Option<Axis>,
pub buttons: Option<Vec<u8>>,
pub relative_motion_range: Option<[Axis; 2]>,
}Expand description
A specification for an injector |Device|.
All fields required.
Fields§
§device_id: Option<u32>§device_type: Option<DeviceType>§context: Option<Context>§target: Option<Target>§viewport: Option<Viewport>§dispatch_policy: Option<DispatchPolicy>§scroll_v_range: Option<Axis>§scroll_h_range: Option<Axis>§relative_motion_range: Option<[Axis; 2]>Trait Implementations§
Source§impl<___E> Encode<Config<'static>, ___E> for Configwhere
___E: Encoder + ?Sized + HandleEncoder,
impl<___E> Encode<Config<'static>, ___E> for Configwhere
___E: Encoder + ?Sized + HandleEncoder,
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]