io.github.pidoveproject.showdown.protocol.MessageEncoder
See theMessageEncoder companion trait
object MessageEncoder
Attributes
- Companion
- trait
- Source
- MessageEncoder.scala
- 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
- Source
- MessageEncoder.scala
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
- Source
- MessageEncoder.scala
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
- Source
- MessageEncoder.scala
Givens
Givens
Attributes
- Source
- MessageEncoder.scala
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
- Source
- MessageEncoder.scala
Attributes
- Source
- MessageEncoder.scala
Attributes
- Source
- MessageEncoder.scala
Attributes
- Source
- MessageEncoder.scala
Attributes
- Source
- MessageEncoder.scala
Attributes
- Source
- MessageEncoder.scala
Attributes
- Source
- MessageEncoder.scala
Attributes
- Source
- MessageEncoder.scala
given nonEmptyTuple[A, T <: Tuple](using headEncoder: MessageEncoder[A], tailEncoder: MessageEncoder[T]): MessageEncoder[A *: T]
Attributes
- Source
- MessageEncoder.scala
Attributes
- Source
- MessageEncoder.scala
Attributes
- Source
- MessageEncoder.scala
In this article