#[repr(C)]pub struct _GPollFD {
pub fd: gint,
pub events: gushort,
pub revents: gushort,
}
Expand description
GPollFD: @fd: the file descriptor to poll (or a HANDLE on Win32) @events: a bitwise combination from #GIOCondition, specifying which events should be polled for. Typically for reading from a file descriptor you would use %G_IO_IN | %G_IO_HUP | %G_IO_ERR, and for writing you would use %G_IO_OUT | %G_IO_ERR. @revents: a bitwise combination of flags from #GIOCondition, returned from the poll() function to indicate which events occurred.
Represents a file descriptor, which events to poll for, and which events occurred.
Fields§
§fd: gint
§events: gushort
§revents: gushort
Trait Implementations§
impl Copy for _GPollFD
impl Eq for _GPollFD
impl StructuralPartialEq for _GPollFD
Auto Trait Implementations§
impl Freeze for _GPollFD
impl RefUnwindSafe for _GPollFD
impl Send for _GPollFD
impl Sync for _GPollFD
impl Unpin for _GPollFD
impl UnwindSafe for _GPollFD
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