Struct wayland_server::sources::FdEventSourceImpl
[−]
[src]
pub struct FdEventSourceImpl<ID> {
pub ready: fn(evlh: &mut EventLoopHandle, idata: &mut ID, fd: RawFd, mask: FdInterest),
pub error: fn(evlh: &mut EventLoopHandle, idata: &mut ID, fd: RawFd, mask: IoError),
}Implementation for FD events
Fields
ready: fn(evlh: &mut EventLoopHandle, idata: &mut ID, fd: RawFd, mask: FdInterest)
The FD is ready to be read/written
Details of the capability state are given as argument.
error: fn(evlh: &mut EventLoopHandle, idata: &mut ID, fd: RawFd, mask: IoError)
An error occured with this FD
Most likely it won't be usable any longer