struct Murcure::Protos::Ping
- Murcure::Protos::Ping
- Struct
- Value
- Object
Included Modules
- Protobuf::Message
Defined in:
murcure/utils/protos.crConstant Summary
-
FIELDS =
{1 => {name: :timestamp, pb_type: :uint64, crystal_type: UInt64, cast_type: UInt64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :good, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :late, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :lost, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :resync, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :udp_packets, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :tcp_packets, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :udp_ping_avg, pb_type: :float, crystal_type: Float32, cast_type: Float32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :udp_ping_var, pb_type: :float, crystal_type: Float32, cast_type: Float32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :tcp_ping_avg, pb_type: :float, crystal_type: Float32, cast_type: Float32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :tcp_ping_var, pb_type: :float, crystal_type: Float32, cast_type: Float32?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Constructors
- .new(buf : Protobuf::Buffer)
- .new(timestamp : UInt64 | Nil = nil, good : UInt32 | Nil = nil, late : UInt32 | Nil = nil, lost : UInt32 | Nil = nil, resync : UInt32 | Nil = nil, udp_packets : UInt32 | Nil = nil, tcp_packets : UInt32 | Nil = nil, udp_ping_avg : Float32 | Nil = nil, udp_ping_var : Float32 | Nil = nil, tcp_ping_avg : Float32 | Nil = nil, tcp_ping_var : Float32 | Nil = nil)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #good : UInt32 | Nil
- #good=(good : UInt32 | Nil)
- #late : UInt32 | Nil
- #late=(late : UInt32 | Nil)
- #lost : UInt32 | Nil
- #lost=(lost : UInt32 | Nil)
- #resync : UInt32 | Nil
- #resync=(resync : UInt32 | Nil)
- #tcp_packets : UInt32 | Nil
- #tcp_packets=(tcp_packets : UInt32 | Nil)
- #tcp_ping_avg : Float32 | Nil
- #tcp_ping_avg=(tcp_ping_avg : Float32 | Nil)
- #tcp_ping_var : Float32 | Nil
- #tcp_ping_var=(tcp_ping_var : Float32 | Nil)
- #timestamp : UInt64 | Nil
- #timestamp=(timestamp : UInt64 | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #udp_packets : UInt32 | Nil
- #udp_packets=(udp_packets : UInt32 | Nil)
- #udp_ping_avg : Float32 | Nil
- #udp_ping_avg=(udp_ping_avg : Float32 | Nil)
- #udp_ping_var : Float32 | Nil
- #udp_ping_var=(udp_ping_var : Float32 | Nil)
Constructor Detail
def self.new(timestamp : UInt64 | Nil = nil, good : UInt32 | Nil = nil, late : UInt32 | Nil = nil, lost : UInt32 | Nil = nil, resync : UInt32 | Nil = nil, udp_packets : UInt32 | Nil = nil, tcp_packets : UInt32 | Nil = nil, udp_ping_avg : Float32 | Nil = nil, udp_ping_var : Float32 | Nil = nil, tcp_ping_avg : Float32 | Nil = nil, tcp_ping_var : Float32 | Nil = nil)
#