Module os.notify stdlib

os.notify
Version:
0.3.3
License:
MIT
Dependencies from vmod:
0
Imports:
2
Imported by:
0
Repository:
OS-specific
Show selected OS-specific symbols.
Backend-specific
Show selected Backend-specific symbols.

Dependencies defined in v.mod

This section is empty.

Imports

Imported by

This section is empty.

Aliases

This section is empty.

Constants

This section is empty.

Sum types

This section is empty.

Functions

#fn new

Linux
fn new() !FdNotifier

new creates a new EpollNotifier The FdNotifier interface is returned to allow OS specific implementations without exposing the concrete type

#fn new

fn new() !FdNotifier

Implement the API

Structs

This section is empty.

Interfaces

#interface FdNotifier

pub interface FdNotifier {
mut:
	add(fd int, events FdEventType, conf ...FdConfigFlags) !
	modify(fd int, events FdEventType, conf ...FdConfigFlags) !
	remove(fd int) !
	wait(timeout time.Duration) []FdEvent
	close() !
}

Backends should provide a new()?FdNotifier function

#interface FdEvent

pub interface FdEvent {
	fd int
	kind FdEventType
}

Enums

#enum FdEventType

flag
pub enum FdEventType {
	read
	write
	peer_hangup
	exception
	error
	hangup
}

#enum FdConfigFlags

flag
pub enum FdConfigFlags {
	edge_trigger
	one_shot
	wake_up
	exclusive
}