LibinputInputBackend

Struct LibinputInputBackend 

Source
pub struct LibinputInputBackend { /* private fields */ }
Available on crate feature backend_libinput only.
Expand description

Libinput based InputBackend.

Tracks input of all devices given manually or via a udev seat to a provided libinput context.

Implementations§

Source§

impl LibinputInputBackend

Source

pub fn new(context: Libinput) -> Self

Initialize a new LibinputInputBackend from a given already initialized libinput context.

Source

pub fn context(&self) -> &Libinput

Returns a reference to the underlying libinput context

Trait Implementations§

Source§

impl<E> AbsolutePositionEvent<LibinputInputBackend> for E
where E: IsTabletEvent + EventTrait,

Source§

fn x(&self) -> f64

Device x position in it’s original coordinate space. Read more
Source§

fn y(&self) -> f64

Device y position in it’s original coordinate space. Read more
Source§

fn x_transformed(&self, width: i32) -> f64

Device x position converted to the targets coordinate space’s width. E.g. the focused output’s width.
Source§

fn y_transformed(&self, height: i32) -> f64

Device y position converted to the targets coordinate space’s height. E.g. the focused output’s height.
Source§

fn position(&self) -> Point<f64, Raw>

Device position in it’s original coordinate space. Read more
Source§

fn position_transformed( &self, coordinate_space: Size<i32, Logical>, ) -> Point<f64, Logical>

Device position converted to the targets coordinate space. E.g. the focused output’s resolution.
Source§

impl AbsolutePositionEvent<LibinputInputBackend> for PointerMotionAbsoluteEvent

Source§

fn x(&self) -> f64

Device x position in it’s original coordinate space. Read more
Source§

fn y(&self) -> f64

Device y position in it’s original coordinate space. Read more
Source§

fn x_transformed(&self, width: i32) -> f64

Device x position converted to the targets coordinate space’s width. E.g. the focused output’s width.
Source§

fn y_transformed(&self, height: i32) -> f64

Device y position converted to the targets coordinate space’s height. E.g. the focused output’s height.
Source§

fn position(&self) -> Point<f64, Raw>

Device position in it’s original coordinate space. Read more
Source§

fn position_transformed( &self, coordinate_space: Size<i32, Logical>, ) -> Point<f64, Logical>

Device position converted to the targets coordinate space. E.g. the focused output’s resolution.
Source§

impl AbsolutePositionEvent<LibinputInputBackend> for TouchDownEvent

Source§

fn x(&self) -> f64

Device x position in it’s original coordinate space. Read more
Source§

fn y(&self) -> f64

Device y position in it’s original coordinate space. Read more
Source§

fn x_transformed(&self, width: i32) -> f64

Device x position converted to the targets coordinate space’s width. E.g. the focused output’s width.
Source§

fn y_transformed(&self, height: i32) -> f64

Device y position converted to the targets coordinate space’s height. E.g. the focused output’s height.
Source§

fn position(&self) -> Point<f64, Raw>

Device position in it’s original coordinate space. Read more
Source§

fn position_transformed( &self, coordinate_space: Size<i32, Logical>, ) -> Point<f64, Logical>

Device position converted to the targets coordinate space. E.g. the focused output’s resolution.
Source§

impl AbsolutePositionEvent<LibinputInputBackend> for TouchMotionEvent

Source§

fn x(&self) -> f64

Device x position in it’s original coordinate space. Read more
Source§

fn y(&self) -> f64

Device y position in it’s original coordinate space. Read more
Source§

fn x_transformed(&self, width: i32) -> f64

Device x position converted to the targets coordinate space’s width. E.g. the focused output’s width.
Source§

fn y_transformed(&self, height: i32) -> f64

Device y position converted to the targets coordinate space’s height. E.g. the focused output’s height.
Source§

fn position(&self) -> Point<f64, Raw>

Device position in it’s original coordinate space. Read more
Source§

fn position_transformed( &self, coordinate_space: Size<i32, Logical>, ) -> Point<f64, Logical>

Device position converted to the targets coordinate space. E.g. the focused output’s resolution.
Source§

impl AsFd for LibinputInputBackend

Source§

fn as_fd(&self) -> BorrowedFd<'_>

Borrows the file descriptor. Read more
Source§

impl Debug for LibinputInputBackend

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<E> Event<LibinputInputBackend> for E
where E: IsTabletEvent,

Source§

fn time(&self) -> u64

Timestamp in microseconds, with an undefined base. Read more
Source§

fn device(&self) -> Device

Returns the device, that generated this event
Source§

fn time_msec(&self) -> u32

Timestamp in milliseconds
Source§

impl Event<LibinputInputBackend> for GestureHoldBeginEvent

Source§

fn time(&self) -> u64

Timestamp in microseconds, with an undefined base. Read more
Source§

fn device(&self) -> Device

Returns the device, that generated this event
Source§

fn time_msec(&self) -> u32

Timestamp in milliseconds
Source§

impl Event<LibinputInputBackend> for GestureHoldEndEvent

Source§

fn time(&self) -> u64

Timestamp in microseconds, with an undefined base. Read more
Source§

fn device(&self) -> Device

Returns the device, that generated this event
Source§

fn time_msec(&self) -> u32

Timestamp in milliseconds
Source§

impl Event<LibinputInputBackend> for GesturePinchBeginEvent

Source§

fn time(&self) -> u64

Timestamp in microseconds, with an undefined base. Read more
Source§

fn device(&self) -> Device

Returns the device, that generated this event
Source§

fn time_msec(&self) -> u32

Timestamp in milliseconds
Source§

impl Event<LibinputInputBackend> for GesturePinchEndEvent

Source§

fn time(&self) -> u64

Timestamp in microseconds, with an undefined base. Read more
Source§

fn device(&self) -> Device

Returns the device, that generated this event
Source§

fn time_msec(&self) -> u32

Timestamp in milliseconds
Source§

impl Event<LibinputInputBackend> for GesturePinchUpdateEvent

Source§

fn time(&self) -> u64

Timestamp in microseconds, with an undefined base. Read more
Source§

fn device(&self) -> Device

Returns the device, that generated this event
Source§

fn time_msec(&self) -> u32

Timestamp in milliseconds
Source§

impl Event<LibinputInputBackend> for GestureSwipeBeginEvent

Source§

fn time(&self) -> u64

Timestamp in microseconds, with an undefined base. Read more
Source§

fn device(&self) -> Device

Returns the device, that generated this event
Source§

fn time_msec(&self) -> u32

Timestamp in milliseconds
Source§

impl Event<LibinputInputBackend> for GestureSwipeEndEvent

Source§

fn time(&self) -> u64

Timestamp in microseconds, with an undefined base. Read more
Source§

fn device(&self) -> Device

Returns the device, that generated this event
Source§

fn time_msec(&self) -> u32

Timestamp in milliseconds
Source§

impl Event<LibinputInputBackend> for GestureSwipeUpdateEvent

Source§

fn time(&self) -> u64

Timestamp in microseconds, with an undefined base. Read more
Source§

fn device(&self) -> Device

Returns the device, that generated this event
Source§

fn time_msec(&self) -> u32

Timestamp in milliseconds
Source§

impl Event<LibinputInputBackend> for KeyboardKeyEvent

Source§

fn time(&self) -> u64

Timestamp in microseconds, with an undefined base. Read more
Source§

fn device(&self) -> Device

Returns the device, that generated this event
Source§

fn time_msec(&self) -> u32

Timestamp in milliseconds
Source§

impl Event<LibinputInputBackend> for PointerButtonEvent

Source§

fn time(&self) -> u64

Timestamp in microseconds, with an undefined base. Read more
Source§

fn device(&self) -> Device

Returns the device, that generated this event
Source§

fn time_msec(&self) -> u32

Timestamp in milliseconds
Source§

impl Event<LibinputInputBackend> for PointerMotionAbsoluteEvent

Source§

fn time(&self) -> u64

Timestamp in microseconds, with an undefined base. Read more
Source§

fn device(&self) -> Device

Returns the device, that generated this event
Source§

fn time_msec(&self) -> u32

Timestamp in milliseconds
Source§

impl Event<LibinputInputBackend> for PointerMotionEvent

Source§

fn time(&self) -> u64

Timestamp in microseconds, with an undefined base. Read more
Source§

fn device(&self) -> Device

Returns the device, that generated this event
Source§

fn time_msec(&self) -> u32

Timestamp in milliseconds
Source§

impl Event<LibinputInputBackend> for PointerScrollAxis

Source§

fn time(&self) -> u64

Timestamp in microseconds, with an undefined base. Read more
Source§

fn device(&self) -> Device

Returns the device, that generated this event
Source§

fn time_msec(&self) -> u32

Timestamp in milliseconds
Source§

impl Event<LibinputInputBackend> for SwitchToggleEvent

Source§

fn time(&self) -> u64

Timestamp in microseconds, with an undefined base. Read more
Source§

fn device(&self) -> <LibinputInputBackend as InputBackend>::Device

Returns the device, that generated this event
Source§

fn time_msec(&self) -> u32

Timestamp in milliseconds
Source§

impl Event<LibinputInputBackend> for TouchCancelEvent

Source§

fn time(&self) -> u64

Timestamp in microseconds, with an undefined base. Read more
Source§

fn device(&self) -> Device

Returns the device, that generated this event
Source§

fn time_msec(&self) -> u32

Timestamp in milliseconds
Source§

impl Event<LibinputInputBackend> for TouchDownEvent

Source§

fn time(&self) -> u64

Timestamp in microseconds, with an undefined base. Read more
Source§

fn device(&self) -> Device

Returns the device, that generated this event
Source§

fn time_msec(&self) -> u32

Timestamp in milliseconds
Source§

impl Event<LibinputInputBackend> for TouchFrameEvent

Source§

fn time(&self) -> u64

Timestamp in microseconds, with an undefined base. Read more
Source§

fn device(&self) -> Device

Returns the device, that generated this event
Source§

fn time_msec(&self) -> u32

Timestamp in milliseconds
Source§

impl Event<LibinputInputBackend> for TouchMotionEvent

Source§

fn time(&self) -> u64

Timestamp in microseconds, with an undefined base. Read more
Source§

fn device(&self) -> Device

Returns the device, that generated this event
Source§

fn time_msec(&self) -> u32

Timestamp in milliseconds
Source§

impl Event<LibinputInputBackend> for TouchUpEvent

Source§

fn time(&self) -> u64

Timestamp in microseconds, with an undefined base. Read more
Source§

fn device(&self) -> Device

Returns the device, that generated this event
Source§

fn time_msec(&self) -> u32

Timestamp in milliseconds
Source§

impl EventSource for LibinputInputBackend

Source§

type Event = InputEvent<LibinputInputBackend>

The type of events generated by your source.
Source§

type Metadata = ()

Some metadata of your event source Read more
Source§

type Ret = ()

The return type of the user callback Read more
Source§

type Error = Error

The error type returned from process_events() (not the user callback!).
Source§

fn process_events<F>( &mut self, _: Readiness, token: Token, callback: F, ) -> Result<PostAction>
where F: FnMut(Self::Event, &mut ()) -> Self::Ret,

Process any relevant events Read more
Source§

fn register( &mut self, poll: &mut Poll, factory: &mut TokenFactory, ) -> Result<()>

Register yourself to this poll instance Read more
Source§

fn reregister( &mut self, poll: &mut Poll, factory: &mut TokenFactory, ) -> Result<()>

Re-register your file descriptors Read more
Source§

fn unregister(&mut self, poll: &mut Poll) -> Result<()>

Unregister your file descriptors Read more
Source§

const NEEDS_EXTRA_LIFECYCLE_EVENTS: bool = false

Whether this source needs to be sent the EventSource::before_sleep and EventSource::before_handle_events notifications. These are opt-in because they require more expensive checks, and almost all sources will not need these notifications
Source§

fn before_sleep(&mut self) -> Result<Option<(Readiness, Token)>, Error>

Notification that a single poll is about to begin Read more
Source§

fn before_handle_events(&mut self, events: EventIterator<'_>)

Notification that polling is complete, and EventSource::process_events will be called with the given events for this source. The iterator may be empty, which indicates that no events were generated for this source Read more
Source§

impl<T> GestureBeginEvent<LibinputInputBackend> for T

Source§

fn fingers(&self) -> u32

Number of fingers.
Source§

impl<T> GestureEndEvent<LibinputInputBackend> for T

Source§

fn cancelled(&self) -> bool

True if event was cancelled.
Source§

impl GesturePinchUpdateEvent<LibinputInputBackend> for GesturePinchUpdateEvent

Source§

fn delta_x(&self) -> f64

Delta of center on the x axis from last begin/update.
Source§

fn delta_y(&self) -> f64

Delta of center on the y axis from last begin/update.
Source§

fn scale(&self) -> f64

Absolute scale compared to begin event.
Source§

fn rotation(&self) -> f64

Relative angle in degrees from last begin/update.
Source§

fn delta(&self) -> Point<f64, Logical>

Delta between the last and new gesture center.
Source§

impl GestureSwipeUpdateEvent<LibinputInputBackend> for GestureSwipeUpdateEvent

Source§

fn delta_x(&self) -> f64

Delta of center on the x axis from last begin/update.
Source§

fn delta_y(&self) -> f64

Delta of center on the y axis from last begin/update.
Source§

fn delta(&self) -> Point<f64, Logical>

Delta between the last and new gesture center.
Source§

impl InputBackend for LibinputInputBackend

Source§

type Device = Device

Type representing input devices
Source§

type KeyboardKeyEvent = KeyboardKeyEvent

Type representing keyboard events
Source§

type PointerAxisEvent = PointerScrollAxis

Type representing axis events on pointer devices
Source§

type PointerButtonEvent = PointerButtonEvent

Type representing button events on pointer devices
Source§

type PointerMotionEvent = PointerMotionEvent

Type representing motion events of pointer devices
Source§

type PointerMotionAbsoluteEvent = PointerMotionAbsoluteEvent

Type representing motion events of pointer devices
Source§

type GestureSwipeBeginEvent = GestureSwipeBeginEvent

Type representing swipe begin events of pointer devices
Source§

type GestureSwipeUpdateEvent = GestureSwipeUpdateEvent

Type representing swipe update events of pointer devices
Source§

type GestureSwipeEndEvent = GestureSwipeEndEvent

Type representing swipe end events of pointer devices
Source§

type GesturePinchBeginEvent = GesturePinchBeginEvent

Type representing pinch begin events of pointer devices
Source§

type GesturePinchUpdateEvent = GesturePinchUpdateEvent

Type representing pinch update events of pointer devices
Source§

type GesturePinchEndEvent = GesturePinchEndEvent

Type representing pinch end events of pointer devices
Source§

type GestureHoldBeginEvent = GestureHoldBeginEvent

Type representing hold begin events of pointer devices
Source§

type GestureHoldEndEvent = GestureHoldEndEvent

Type representing hold end events of pointer devices
Source§

type TouchDownEvent = TouchDownEvent

Type representing touch events starting
Source§

type TouchUpEvent = TouchUpEvent

Type representing touch events ending
Source§

type TouchMotionEvent = TouchMotionEvent

Type representing touch events from moving
Source§

type TouchCancelEvent = TouchCancelEvent

Type representing canceling of touch events
Source§

type TouchFrameEvent = TouchFrameEvent

Type representing touch frame events
Source§

type TabletToolAxisEvent = TabletToolAxisEvent

Type representing axis events on tablet devices
Source§

type TabletToolProximityEvent = TabletToolProximityEvent

Type representing proximity events on tablet devices
Source§

type TabletToolTipEvent = TabletToolTipEvent

Type representing tip events on tablet devices
Source§

type TabletToolButtonEvent = TabletToolButtonEvent

Type representing button events on tablet tool devices
Source§

type SwitchToggleEvent = SwitchToggleEvent

Type representing switch toggle events
Source§

type SpecialEvent = UnusedEvent

Special events that are custom to this backend
Source§

impl KeyboardKeyEvent<LibinputInputBackend> for KeyboardKeyEvent

Source§

fn key_code(&self) -> Keycode

Returns the numerical button code of the keyboard button. Read more
Source§

fn state(&self) -> KeyState

State of the key
Source§

fn count(&self) -> u32

Total number of keys pressed on all devices on the associated Seat
Source§

impl PointerAxisEvent<LibinputInputBackend> for PointerScrollAxis

Source§

fn amount(&self, axis: Axis) -> Option<f64>

Amount of scrolling in pixels on the given Axis. Read more
Source§

fn amount_v120(&self, axis: Axis) -> Option<f64>

Amount of scrolling in discrete steps on the given Axis. Read more
Source§

fn source(&self) -> AxisSource

Source of the scroll event.
Source§

fn relative_direction(&self, _axis: Axis) -> AxisRelativeDirection

Relative direction of physical motion.
Source§

impl PointerButtonEvent<LibinputInputBackend> for PointerButtonEvent

Source§

fn button_code(&self) -> u32

Returns the numerical button code of the mouse button. Read more
Source§

fn state(&self) -> ButtonState

State of the button
Source§

fn button(&self) -> Option<MouseButton>

Pressed button of the event. Read more
Source§

impl PointerMotionEvent<LibinputInputBackend> for PointerMotionEvent

Source§

fn delta_x(&self) -> f64

Delta on the x axis between the last and new pointer device position interpreted as pixel movement
Source§

fn delta_y(&self) -> f64

Delta on the y axis between the last and new pointer device position interpreted as pixel movement
Source§

fn delta_x_unaccel(&self) -> f64

Unaccelerated delta on the x axis between the last and new pointer device position
Source§

fn delta_y_unaccel(&self) -> f64

Unaccelerated delta on the y axis between the last and new pointer device position
Source§

fn delta(&self) -> Point<f64, Logical>

Delta between the last and new pointer device position interpreted as pixel movement
Source§

fn delta_unaccel(&self) -> Point<f64, Logical>

Unaccelerated delta between the last and new pointer device position
Source§

impl SwitchToggleEvent<LibinputInputBackend> for SwitchToggleEvent

Source§

fn switch(&self) -> Option<Switch>

Switch which triggered the event
Source§

fn state(&self) -> SwitchState

State of the switch
Source§

impl TabletToolButtonEvent<LibinputInputBackend> for TabletToolButtonEvent

Source§

fn button(&self) -> u32

Return the button that triggered this event.
Source§

fn seat_button_count(&self) -> u32

For the button of a TabletToolButtonEvent, return the total number of buttons pressed on all devices on the associated seat after the the event was triggered.
Source§

fn button_state(&self) -> ButtonState

Return the button state of the event.
Source§

impl<E> TabletToolEvent<LibinputInputBackend> for E
where E: IsTabletEvent + EventTrait,

Source§

fn tool(&self) -> TabletToolDescriptor

Get tablet tool that caused this event
Source§

fn delta_x(&self) -> f64

Delta on the x axis between the last and new pointer device position interpreted as pixel movement
Source§

fn delta_y(&self) -> f64

Delta on the y axis between the last and new pointer device position interpreted as pixel movement
Source§

fn distance(&self) -> f64

If this axis does not exist on the current tool, this function returns 0.
Source§

fn distance_has_changed(&self) -> bool

Check if the distance axis was updated in this event.
Source§

fn pressure(&self) -> f64

Returns the current pressure being applied on the tool in use, normalized to the range [0, 1]. Read more
Source§

fn pressure_has_changed(&self) -> bool

Check if the pressure axis was updated in this event.
Source§

fn slider_position(&self) -> f64

Returns the current position of the slider on the tool, normalized to the range [-1, 1]. Read more
Source§

fn slider_has_changed(&self) -> bool

Check if the slider axis was updated in this event.
Source§

fn tilt_x(&self) -> f64

Returns the current tilt along the X axis of the tablet’s current logical orientation, in degrees off the tablet’s z axis. Read more
Source§

fn tilt_x_has_changed(&self) -> bool

Check if the tilt x axis was updated in this event.
Source§

fn tilt_y(&self) -> f64

Returns the current tilt along the Y axis of the tablet’s current logical orientation, in degrees off the tablet’s z axis. Read more
Source§

fn tilt_y_has_changed(&self) -> bool

Check if the tilt y axis was updated in this event.
Source§

fn rotation(&self) -> f64

Returns the current z rotation of the tool in degrees, clockwise from the tool’s logical neutral position. Read more
Source§

fn rotation_has_changed(&self) -> bool

Check if the z-rotation axis was updated in this event.
Source§

fn wheel_delta(&self) -> f64

Return the delta for the wheel in degrees.
Source§

fn wheel_delta_discrete(&self) -> i32

Return the delta for the wheel in discrete steps (e.g. wheel clicks).
Source§

fn wheel_has_changed(&self) -> bool

Check if the wheel axis was updated in this event.
Source§

fn delta(&self) -> Point<f64, Logical>

Delta between the last and new pointer device position interpreted as pixel movement
Source§

fn tilt(&self) -> (f64, f64)

Returns the current tilt along the (X,Y) axis of the tablet’s current logical orientation, in degrees off the tablet’s z axis. Read more
Source§

fn tilt_has_changed(&self) -> bool

Check if the tilt was updated in this event.
Source§

impl TabletToolProximityEvent<LibinputInputBackend> for TabletToolProximityEvent

Source§

fn state(&self) -> ProximityState

Returns the new proximity state of a tool from a proximity event. Read more
Source§

impl TabletToolTipEvent<LibinputInputBackend> for TabletToolTipEvent

Source§

fn tip_state(&self) -> TabletToolTipState

Returns the new tip state of a tool from a tip event. Read more
Source§

impl TouchEvent<LibinputInputBackend> for TouchCancelEvent

Source§

fn slot(&self) -> TouchSlot

Multi-touch slot identifier.
Source§

impl TouchEvent<LibinputInputBackend> for TouchDownEvent

Source§

fn slot(&self) -> TouchSlot

Multi-touch slot identifier.
Source§

impl TouchEvent<LibinputInputBackend> for TouchMotionEvent

Source§

fn slot(&self) -> TouchSlot

Multi-touch slot identifier.
Source§

impl TouchEvent<LibinputInputBackend> for TouchUpEvent

Source§

fn slot(&self) -> TouchSlot

Multi-touch slot identifier.
Source§

impl GestureHoldBeginEvent<LibinputInputBackend> for GestureHoldBeginEvent

Source§

impl GestureHoldEndEvent<LibinputInputBackend> for GestureHoldEndEvent

Source§

impl GesturePinchBeginEvent<LibinputInputBackend> for GesturePinchBeginEvent

Source§

impl GesturePinchEndEvent<LibinputInputBackend> for GesturePinchEndEvent

Source§

impl GestureSwipeBeginEvent<LibinputInputBackend> for GestureSwipeBeginEvent

Source§

impl GestureSwipeEndEvent<LibinputInputBackend> for GestureSwipeEndEvent

Source§

impl PointerMotionAbsoluteEvent<LibinputInputBackend> for PointerMotionAbsoluteEvent

Source§

impl TabletToolAxisEvent<LibinputInputBackend> for TabletToolAxisEvent

Source§

impl TouchCancelEvent<LibinputInputBackend> for TouchCancelEvent

Source§

impl TouchDownEvent<LibinputInputBackend> for TouchDownEvent

Source§

impl TouchFrameEvent<LibinputInputBackend> for TouchFrameEvent

Source§

impl TouchMotionEvent<LibinputInputBackend> for TouchMotionEvent

Source§

impl TouchUpEvent<LibinputInputBackend> for TouchUpEvent

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> AsFilelike for T
where T: AsFd,

§

fn as_filelike(&self) -> BorrowedFd<'_>

Borrows the reference. Read more
§

fn as_filelike_view<Target>(&self) -> FilelikeView<'_, Target>
where Target: FilelikeViewType,

Return a borrowing view of a resource which dereferences to a &Target. Read more
§

impl<T> AsSocketlike for T
where T: AsFd,

§

fn as_socketlike(&self) -> BorrowedFd<'_>

Borrows the reference.
§

fn as_socketlike_view<Target>(&self) -> SocketlikeView<'_, Target>
where Target: SocketlikeViewType,

Return a borrowing view of a resource which dereferences to a &Target. Read more
§

impl<T> AsSource for T
where T: AsFd,

§

fn source(&self) -> BorrowedFd<'_>

Returns the borrowed file descriptor.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<A> DevPath for A
where A: AsFd,

Source§

fn dev_path(&self) -> Option<PathBuf>

Returns the path of the open device if possible
§

impl<T> Downcast for T
where T: 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>

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)

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)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more