StructureNIOEmbedded
WrongTypeError
WrongTypeError
is throws if you use readInbound
or readOutbound
and request a certain type but the first item in the respective buffer is of a different type.
struct WrongTypeError
WrongTypeError
is throws if you use readInbound
or readOutbound
and request a certain type but the first item in the respective buffer is of a different type.
struct WrongTypeError
let actual: Any.Type
The type of the actual first element.
let expected: Any.Type
The type you expected.
static func != (Self, Self) -> Bool
static func == (EmbeddedChannel.WrongTypeError, EmbeddedChannel.WrongTypeError) -> Bool
Returns a Boolean value indicating whether two values are equal.