struct

RNS::Rnstatus::InterfaceStat

Inherits Struct < Value < Object

An interface stats record for displaying status.

Constructors

new(name : String, short_name : String, hash : Bytes, type_name : String, status : Bool, mode : UInt8, rxb : Int64, txb : Int64, rxs : Float64, txs : Float64, clients : Int32 | Nil, bitrate : Int64 | Nil, incoming_announce_frequency : Float64, outgoing_announce_frequency : Float64, held_announces : Int32, announce_queue : Int32 | Nil, ifac_signature : Bytes | Nil, ifac_size : Int32, ifac_netname : String | Nil, autoconnect_source : String | Nil, peers : Int32 | Nil)
Source

Instance methods

announce_queue
autoconnect_source
bitrate
clients
clone
Source
copy_with(name _name = @name, short_name _short_name = @short_name, hash _hash = @hash, type_name _type_name = @type_name, status _status = @status, mode _mode = @mode, rxb _rxb = @rxb, txb _txb = @txb, rxs _rxs = @rxs, txs _txs = @txs, clients _clients = @clients, bitrate _bitrate = @bitrate, incoming_announce_frequency _incoming_announce_frequency = @incoming_announce_frequency, outgoing_announce_frequency _outgoing_announce_frequency = @outgoing_announce_frequency, held_announces _held_announces = @held_announces, announce_queue _announce_queue = @announce_queue, ifac_signature _ifac_signature = @ifac_signature, ifac_size _ifac_size = @ifac_size, ifac_netname _ifac_netname = @ifac_netname, autoconnect_source _autoconnect_source = @autoconnect_source, peers _peers = @peers)
Source
hash

Generates an UInt64 hash value for this object.

This method must have the property that a == b implies a.hash == b.hash.

The hash value is used along with == by the Hash class to determine if two objects reference the same hash key.

Subclasses must not override this method. Instead, they must define hash(hasher), though usually the macro def_hash can be used to generate this method.

held_announces
ifac_netname
ifac_signature
ifac_size
incoming_announce_frequency
mode
name
outgoing_announce_frequency
peers
rxb
rxs
short_name
status
txb
txs
type_name