BiDiWsMessageLensSpec

Represents a bi-directional extraction of an entity from a target Body, or an insertion into a target WsMessage.

Constructors

Link copied to clipboard
constructor(get: LensGet<WsMessage, OUT>, set: LensSet<WsMessage, OUT>)

Functions

Link copied to clipboard
fun <NEXT> map(nextIn: (OUT) -> NEXT, nextOut: (NEXT) -> OUT): BiDiWsMessageLensSpec<NEXT>

Create another BiDiWsMessageLensSpec which applies the bi-directional transformations to the result. Any resultant Lens can be used to extract or insert the final type from/into a WsMessage.

fun <NEXT> map(nextIn: (OUT) -> NEXT): WsMessageLensSpec<NEXT>

Create another WsMessageLensSpec which applies the uni-directional transformation to the result. Any resultant Lens can only be used to extract the final type from a WsMessage.

Link copied to clipboard
open override fun toLens(): BiDiWsMessageLens<OUT>

Create a lens for this Spec