package codecs
- Alphabetic
- By Inheritance
- codecs
- lowerprioritycodecs
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- class DecodingFailure extends Exception
- class EncodingFailure extends Exception
- implicit class PlusSyntax extends AnyRef
Value Members
- implicit val bool: Codec[Boolean]
- implicit def byteArray: Codec[Array[Byte]]
- implicit def contextDecoder: Decoder[Context]
- implicit def contextEncoder: Encoder[Context]
- implicit val double: Codec[Double]
- implicit def either[A, B](implicit LCA: Lazy[Codec[A]], LCB: Lazy[Codec[B]]): Codec[\/[A, B]]
-
def
encodeRequest[A](a: Remote[A], ctx: Context)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[A]): Attempt[BitVector]
Wait for all
Async
tasks to complete, then encode the remaining concrete expression.Wait for all
Async
tasks to complete, then encode the remaining concrete expression. The produced bit vector may be read byremoteDecoder
. That is,encodeRequest(r).flatMap(bits => decodeRequest(env).decode(bits))
should succeed, given a suitableenv
which knows how to decode the serialized values.Use
encode(r).map(_.toByteArray)
to produce aTask[Array[Byte]]
. - def fail[A](msg: Err): Decoder[A]
- implicit val float: Codec[Float]
- implicit def indexedSeq[A](implicit LCA: Lazy[Codec[A]]): Codec[IndexedSeq[A]]
- implicit val int32: Codec[Int]
- implicit val int64: Codec[Long]
- implicit def list[A](implicit LCA: Lazy[Codec[A]]): Codec[List[A]]
- def localRemoteDecoder(env: Codecs): Decoder[Local[Any]]
- def localRemoteEncoder[A]: Encoder[Local[A]]
- implicit def map[K, V](implicit LCK: Lazy[Codec[K]], LCV: Lazy[Codec[V]]): Codec[Map[K, V]]
- implicit def option[A](implicit LCA: Lazy[Codec[A]]): Codec[Option[A]]
- def refCodec[A]: Codec[Ref[A]]
-
def
remoteDecoder(env: Codecs): Decoder[Remote[Any]]
A
Remote[Any]
decoder.A
Remote[Any]
decoder. If aLocal
value refers to a decoder that is not found inenv
, decoding fails with an error. - def remoteEncode(r: Remote[Any]): Attempt[BitVector]
- implicit def remoteEncoder[A]: Encoder[Remote[A]]
- def requestDecoder(env: Environment): Decoder[(Encoder[Any], Context, Remote[Any])]
- def responseDecoder[A](implicit LDA: Lazy[Decoder[A]]): Decoder[\/[String, A]]
- def responseEncoder[A](implicit LEA: Lazy[Encoder[A]]): Encoder[Attempt[A]]
-
implicit
def
seq[A](implicit LCA: Lazy[Codec[A]]): Codec[Seq[A]]
- Definition Classes
- lowerprioritycodecs
- implicit def set[A](implicit LCA: Lazy[Codec[A]]): Codec[Set[A]]
- implicit def sortedMap[K, V](implicit arg0: Ordering[K], LCK: Lazy[Codec[K]], LCV: Lazy[Codec[V]]): Codec[SortedMap[K, V]]
- implicit def sortedSet[A](implicit LCA: Lazy[Codec[A]], O: Ordering[A]): Codec[SortedSet[A]]
- implicit def stdEither[A, B](implicit LCA: Lazy[Codec[A]], LCB: Lazy[Codec[B]]): Codec[Either[A, B]]
- def succeed[A](a: A): Decoder[A]
- implicit def tuple2[A, B](implicit LCA: Lazy[Codec[A]], LCB: Lazy[Codec[B]]): Lazy[Codec[(A, B)]]
- implicit val utf8: Codec[String]