libero/wire

Deprecated: use libero/etf/wire directly.

Compatibility wrapper kept for existing consumers that import libero/wire. New code should use libero/etf/wire.

Types

pub type ServerFrame(value) =
  frame.ServerFrame(value)

Values

pub fn coerce(value: a) -> b
pub fn decode(data: BitArray) -> a
pub fn decode_flags_typed(
  flags flags: String,
  decoder_name decoder_name: String,
) -> Result(a, error.DecodeError)
pub fn decode_push_frame(
  data: BitArray,
) -> Result(frame.ServerFrame(dynamic.Dynamic), error.DecodeError)
pub fn decode_request(
  data: BitArray,
) -> Result(#(String, Int, dynamic.Dynamic), error.DecodeError)
pub fn decode_response_frame(
  data: BitArray,
) -> Result(frame.ServerFrame(dynamic.Dynamic), error.DecodeError)
pub fn decode_safe(
  data: BitArray,
) -> Result(a, error.DecodeError)
pub fn decode_server_frame(
  data: BitArray,
) -> Result(frame.ServerFrame(dynamic.Dynamic), error.DecodeError)
pub fn decode_typed(
  data data: BitArray,
  decoder_name decoder_name: String,
) -> Result(a, error.DecodeError)
pub fn encode(value: a) -> BitArray
pub fn encode_flags(value: a) -> String
pub fn encode_push(
  module module: String,
  value value: a,
) -> BitArray
pub fn encode_request(
  module module: String,
  request_id request_id: Int,
  msg msg: a,
) -> BitArray
pub fn encode_response(
  request_id request_id: Int,
  value value: a,
) -> BitArray
pub fn tag_push(data: BitArray) -> BitArray
pub fn tag_response(
  request_id request_id: Int,
  data data: BitArray,
) -> BitArray
pub fn variant_tag(value: dynamic.Dynamic) -> Result(String, Nil)
Search Document