struct Cannon::Rpc::Protocol::Header

Overview

Protocol header, can be fast-serialized

Included Modules

Extended Modules

Defined in:

cannon/rpc/protocol.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Cannon::FastAutoToIo

to_cannon_io(io) to_cannon_io

Class methods inherited from class Object

to_cannon_io(io, value) to_cannon_io

Constructor Detail

def self.new(flags : Cannon::Rpc::Protocol::Flags, service_id : UInt32, method : UInt32, handle : UInt8 = 0_u8) #

[View source]

Class Method Detail

def self.use_fast_cannon? #

Magic method to mark this structure as being fast en-/decodable.


[View source]

Instance Method Detail

def flags : Flags #

[View source]
def flags=(flags : Flags) #

[View source]
def handle : UInt8 #

[View source]
def handle=(handle : UInt8) #

[View source]
def method : UInt32 #

[View source]
def method=(method : UInt32) #

[View source]
def service_id : UInt32 #

[View source]
def service_id=(service_id : UInt32) #

[View source]