ChannelCodec

lepus.std.ChannelCodec
See theChannelCodec companion object
trait ChannelCodec[T]

ChannelCodec is the interface for encoding/decoding operations for messages that can fail on both ways.

Note that this is not a typeclass and it is not used in implicit scope and there are no instances of it.

Attributes

Companion
object
Source
ChannelCodec.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def decode(msg: MessageRaw): Either[Throwable, Message[T]]

Attributes

Source
ChannelCodec.scala
def encode(msg: Message[T]): Either[Throwable, MessageRaw]

Attributes

Source
ChannelCodec.scala

Concrete methods

final def encode(payload: T): Either[Throwable, MessageRaw]

Attributes

Source
ChannelCodec.scala