enum Duo::State

Defined in:

duo/state.cr

Enum Members

Idle = 0
ReservedLocal = 1
ReservedRemote = 2
Open = 3
HalfClosedLocal = 4
HalfClosedRemote = 5
Closed = 6

Class Method Summary

Instance Method Summary

Class Method Detail

def self.receiving(frame : Frame) #

[View source]
def self.sending(frame : Frame) #

[View source]

Instance Method Detail

def active? #

[View source]
def closed? #

[View source]
def error!(receiving = false) #

[View source]
def half_closed_local? #

[View source]
def half_closed_remote? #

[View source]
def idle? #

[View source]
def open? #

[View source]
def reserved_local? #

[View source]
def reserved_remote? #

[View source]
def to_s(io) #

[View source]
def transition(frame : Frame, receiving = false) #

[View source]