The type of the actual first element.
let actual: any Any.Type
s11NIOEmbedded22NIOAsyncTestingChannelC14WrongTypeErrorV6actualypXpvp
2GP83
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
init(expected: any Any.Type, actual: any Any.Type)
let expected: any Any.Type
The type you expected.
static func == (lhs: NIOAsyncTestingChannel.WrongTypeError, rhs: NIOAsyncTestingChannel.WrongTypeError) -> Bool