All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ldbc.connector.net.packet.Packet.scala Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (c) 2023-2024 by Takahiko Tominaga
 * This software is licensed under the MIT License (MIT).
 * For more information see LICENSE or https://opensource.org/licenses/MIT
 */

package ldbc.connector.net.packet

import scodec.*
import scodec.bits.BitVector

/** A trait that represents a packet. */
transparent trait Packet

/** A trait that represents a request packet. */
trait RequestPacket extends Packet:
  protected def encodeBody: Attempt[BitVector]

  def encode: BitVector

/** A trait that represents a response packet. */
trait ResponsePacket extends Packet




© 2015 - 2024 Weber Informatics LLC | Privacy Policy