init(expected: Any.Type, actual: Any.Type)
s11NIOEmbedded22NIOAsyncTestingChannelC14WrongTypeErrorV8expected6actualAEypXp_ypXptcfc
82TML
import NIOEmbedded
struct WrongTypeError
WrongTypeError is thrown if you use readInbound(as:) or readOutbound(as:) and request a certain type but the first item in the respective buffer is of a different type.
WrongTypeError
readInbound(as:)
readOutbound(as:)
final class NIOAsyncTestingChannel
A Channel with fine-grained control for testing.
Channel
let actual: Any.Type
The type of the actual first element.
let expected: Any.Type
The type you expected.
static func == (lhs: WrongTypeError, rhs: WrongTypeError) -> Bool