NAME

POEx::Types - Exported Types for use within POEx modules

VERSION

version 0.092460

DESCRIPTION

This modules exports the needed subtypes, and coercions for POEx modules and is based on Sub::Exporter, so see that module for options on importing.

TYPES

Kernel

A subtype for POE::Kernel.

Wheel

A subtype for POE::Wheel.

Filter

A subtype for POE::Filter.

Driver

A subtype for POE::Driver.

Session

This sets an isa constraint on POE::Session

SessionID

Session IDs in POE are represented as positive integers and this Type constrains as such

SessionAlias

Session aliases are strings in and this is simply an alias for Str

DoesSessionInstantiation

This sets a constraint for an object that does POEx::Role::SessionInstantiation

SessionRefIdAliasInstantiation

This is a convience type that checks for the above types in one go.

WheelID

WheelIDs are represented as positive integers

COERCIONS

Most of these coercions require an active POE::Kernel and so their use is only recommened inside a proper POE context

SessionID

You can coerce SessionAlias, Session, and DoesSessionInstantiation to a SessionID (via to_SessionID)

SessionAlias

You can coerce Session, SessionID, and DoesSessionInstantiation to a SessionAlias (via to_SessionAlias)

Session

You can coerce SessionAlias and SessionID to a SessionID (via to_Session)

AUTHOR

Nicholas Perez <nperez@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2009 by Nicholas Perez.

This is free software, licensed under:

The GNU General Public License, Version 3, June 2007