Struct asyncio::IoService [] [src]

pub struct IoService(_);

Methods

impl IoService
[src]

Returns a new IoService.

Panics

Panics if too many open files.

Examples

use asyncio::IoService;

let io = IoService::new();Run

Requests a process to invoke the given handler.

Requests a process to invoke the given handler and return immediately.

Runs all given handlers.

Examples

use asyncio::IoService;

let io = IoService::new();
io.run();Run

Sets a stop request and cancel all of the waiting event in an IoService.

Examples

use asyncio::IoService;

let io = IoService::new();
io.stop();Run

Returns true if this has been stopped.

Examples

use asyncio::IoService;

let io = IoService::new();
assert_eq!(io.stopped(), false);
io.stop();
assert_eq!(io.stopped(), true);Run

Resets a stopped IoService.

Examples

use asyncio::IoService;

let io = IoService::new();
assert_eq!(io.stopped(), false);
io.stop();
assert_eq!(io.stopped(), true);
io.reset();
assert_eq!(io.stopped(), false);Run

Trait Implementations

impl Clone for IoService
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for IoService
[src]

Formats the value using the given formatter.

impl IoObject for IoService
[src]

Returns a IoService associated with this object.