pub struct EventSource { /* private fields */ }Expand description
Platform-specific event source.
Implementations§
Source§impl EventSource
impl EventSource
Sourcepub fn new(raw: RawEventSource, token: EventToken) -> Self
pub fn new(raw: RawEventSource, token: EventToken) -> Self
Create a new event source from a raw platform source and token.
Sourcepub fn fd(fd: RawFd, token: EventToken) -> Self
pub fn fd(fd: RawFd, token: EventToken) -> Self
Create a Unix file-descriptor source.
Sourcepub fn token(&self) -> EventToken
pub fn token(&self) -> EventToken
Token returned when this source is ready.
Sourcepub fn raw(&self) -> RawEventSource
pub fn raw(&self) -> RawEventSource
Raw platform source.
Trait Implementations§
Source§impl Clone for EventSource
impl Clone for EventSource
Source§fn clone(&self) -> EventSource
fn clone(&self) -> EventSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EventSource
Source§impl Debug for EventSource
impl Debug for EventSource
impl Eq for EventSource
Source§impl PartialEq for EventSource
impl PartialEq for EventSource
Source§fn eq(&self, other: &EventSource) -> bool
fn eq(&self, other: &EventSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EventSource
Auto Trait Implementations§
impl Freeze for EventSource
impl RefUnwindSafe for EventSource
impl Send for EventSource
impl Sync for EventSource
impl Unpin for EventSource
impl UnsafeUnpin for EventSource
impl UnwindSafe for EventSource
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