Attributes
- Companion
- class
- Source
- MessageDecoder.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MessageDecoder.type
Members list
Value members
Concrete methods
A decoder attempting to evaluate the given result.
A decoder attempting to evaluate the given result.
Type parameters
- T
-
the result type
Value parameters
- value
-
the result to evaluate
Attributes
- Returns
-
a decoder succeeding with the passed result or failing if the result evaluation failed
- See also
- Source
- MessageDecoder.scala
A decoder attempting to evaluate the given result.
A decoder attempting to evaluate the given result.
Type parameters
- T
-
the result type
Value parameters
- error
-
the function to transform the thrown error into a ProtocolError
- value
-
the result to evaluate
Attributes
- Returns
-
a decoder succeeding with the passed result or failing with the given error if the result evaluation failed
- See also
- Source
- MessageDecoder.scala
Derive a decoder from a case class or an enum.
Derive a decoder from a case class or an enum.
Type parameters
- T
-
the result type
Value parameters
- m
-
the mirror representing the result type
Attributes
- Returns
-
a decoder automatically generated for the type
T
- Source
- MessageDecoder.scala
Create an always-failing decoder.
Create an always-failing decoder.
Value parameters
- error
-
the error of the decoder
Attributes
- Returns
-
a decoder that always fail with the passed error
- Source
- MessageDecoder.scala
Create a decoder from an either.
Create a decoder from an either.
Type parameters
- T
-
the result type
Value parameters
- value
-
the error or succeeding result
Attributes
- Returns
-
a decoder succeeding with the right result or failing with the left error
- Source
- MessageDecoder.scala
Create a decoder from a JsonDecoder
Create a decoder from an optional value.
Create a decoder from an optional value.
Type parameters
- T
-
the result type of the decoder
Value parameters
- value
-
the optional value to pass if exists.
Attributes
- Returns
-
a decoder succeeding with the current value or failing if the passed value is
None
- Source
- MessageDecoder.scala
A decoder accepting one of the given keywords.
A decoder accepting one of the given keywords.
Value parameters
- values
-
the accepted keywords
Attributes
- Returns
-
a decoder resulting in the parsed keyword
- Source
- MessageDecoder.scala
Create an always-succeeding decoder.
Create an always-succeeding decoder.
Type parameters
- T
-
the result type
Value parameters
- value
-
the result of the decoder
Attributes
- Returns
-
a decoder that always succeeds with the passed value
- Source
- MessageDecoder.scala
A decoder accepting a keyword.
A decoder accepting a keyword.
Value parameters
- value
-
the keyword to decode
Attributes
- Returns
-
a decoder resulting in the passed keyword as String
- Source
- MessageDecoder.scala
Givens
Givens
Attributes
- Source
- MessageDecoder.scala
Attributes
- Source
- MessageDecoder.scala
Derive a decoder from an union type.
Derive a decoder from an union type.
Type parameters
- T
-
the result type (union)
Value parameters
- m
-
the mirror representing the union type
Attributes
- Returns
-
a decoder automatically generated for the type
T
- Source
- MessageDecoder.scala
Attributes
- Source
- MessageDecoder.scala
Attributes
- Source
- MessageDecoder.scala
Attributes
- Source
- MessageDecoder.scala
Attributes
- Source
- MessageDecoder.scala
Attributes
- Source
- MessageDecoder.scala
Attributes
- Source
- MessageDecoder.scala
Attributes
- Source
- MessageDecoder.scala
Attributes
- Source
- MessageDecoder.scala
Attributes
- Source
- MessageDecoder.scala
Attributes
- Source
- MessageDecoder.scala
Extensions
Extensions
Transforms the error message of this Either to a ProtocolError
Transforms the error message of this Either to a ProtocolError
Attributes
- Source
- MessageDecoder.scala
Decode the value.
Decode the value.
Attributes
- Returns
-
either a succeeding result or an error if the decoding failed
- Source
- MessageDecoder.scala