module Cannon::Rpc::GenericService

Overview

Work-around helper to store untyped Service instances. You're probably looking for Service or RemoteService.

Direct including types

Defined in:

cannon/rpc/generic_service.cr

Constant Summary

NOOP_WRITER = ->(io : IO) do io end

Instance Method Summary

Instance Method Detail

def manager : Manager | Nil #

The Manager this service is registered to


def manager=(manager : Manager | Nil) #

The Manager this service is registered to


[View source]
def manager? : Manager | Nil | Nil #

The Manager this service is registered to


def owner : Connection | Nil #

The Connection owning this service


[View source]
def owner=(owner : Connection | Nil) #

The Connection owning this service


[View source]
abstract def rpc_invoke(function_hash : UInt32, io, connection : Connection) : ResponseWriter #

[View source]
abstract def rpc_invoke_async(function_hash : UInt32, io, connection : Connection) : Tuple(Channel(ResponseWriter), Channel(Exception)) #

[View source]
def service_id : UInt32 | Nil #

The service id


def service_id=(service_id : UInt32 | Nil) #

The service id


[View source]
def service_id? : UInt32 | Nil | Nil #

The service id