io.github.pidoveproject.showdown.protocol.MessageEncoder
See theMessageEncoder companion trait
object MessageEncoder
Attributes
- Companion
- trait
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MessageEncoder.type
Members list
Value members
Concrete methods
Derive an encoder from a case class or an enum.
Derive an encoder from a case class or an enum.
Type parameters
- A
-
the result type
Value parameters
- m
-
the mirror representing the result type
Attributes
- Returns
-
a encoder automatically generated for the type
A
Create an always-failing encoder.
Create an always-failing encoder.
Value parameters
- error
-
the error of the encoder
Attributes
- Returns
-
a encoder that always fail with the passed error
Create an always-succeeding encoder.
Create an always-succeeding encoder.
Type parameters
- A
-
the input type
Value parameters
- value
-
the result of the encoder
Attributes
- Returns
-
a encoder that always succeeds with the passed value
Givens
Givens
Derive an encoder from an union type.
Derive an encoder from an union type.
Type parameters
- A
-
the result type (union)
Value parameters
- m
-
the mirror representing the union type
Attributes
- Returns
-
an encoder automatically generated for the type
A
given nonEmptyTuple[A, T <: Tuple](using headEncoder: MessageEncoder[A], tailEncoder: MessageEncoder[T]): MessageEncoder[A *: T]
In this article