Function Channel.getState

ChannelState getState() @safe;

Returns

the current state of the channel