The handler slot of a unary RPC of the entity G: request X,
success S, errors E; its middleware provides MP; R is
what the handlers need so far; K is the RPC's tag and H the tags
still without a handler.
Functions#
__init__#
__init__(handlers, tag) -> None| Parameter | Type | Description |
|---|---|---|
handlers | EntityHandlers[Any, Any, Any] | |
tag | str |
def __init__(self, handlers: EntityHandlers[Any, Any, Any], tag: str) -> None:
self._handlers = handlers
self._tag = tag__call__#
__call__(handler: Callable[[X_co], Effect[S_contra | Deferred[S_contra, E], E, MP_contra]], /) -> EntityHandlers[G_co, RR_co]
__call__[R1](handler: Callable[[X_co], Effect[S_contra | Deferred[S_contra, E], E, R1 | MP_contra]], /) -> EntityHandlers[G_co, RR_co | R1]
__call__[Rest](handler: Callable[[X_co], Effect[S_contra | Deferred[S_contra, E], E, MP_contra]], /) -> EntityHandlers[G_co, RR_co, Rest]
__call__[R1, Rest](handler: Callable[[X_co], Effect[S_contra | Deferred[S_contra, E], E, R1 | MP_contra]], /) -> EntityHandlers[G_co, RR_co | R1, Rest]
__call__(handler: Callable[[X_co], Effect[S_contra | Deferred[S_contra, E], E, MP_contra]], /) -> EntityHandlers[G_co, RR_co]
__call__[R1](handler: Callable[[X_co], Effect[S_contra | Deferred[S_contra, E], E, R1 | MP_contra]], /) -> EntityHandlers[G_co, RR_co | R1]| Parameter | Type | Description |
|---|---|---|
handler |
@overload
def __call__(
self: Bound[G_co, X_co, S_contra, E, MP_contra, RR_co, K, K],
handler: Callable[[X_co], Effect[S_contra | Deferred[S_contra, E], E, MP_contra]],
/,
) -> EntityHandlers[G_co, RR_co]: ...
@overload
def __call__[R1](
self: Bound[G_co, X_co, S_contra, E, MP_contra, RR_co, K, K],
handler: Callable[[X_co], Effect[S_contra | Deferred[S_contra, E], E, R1 | MP_contra]],
/,
) -> EntityHandlers[G_co, RR_co | R1]: ...
@overload
def __call__[Rest](
self: Bound[G_co, X_co, S_contra, E, MP_contra, RR_co, K, K | Rest],
handler: Callable[[X_co], Effect[S_contra | Deferred[S_contra, E], E, MP_contra]],
/,
) -> EntityHandlers[G_co, RR_co, Rest]: ...
@overload
def __call__[R1, Rest](
self: Bound[G_co, X_co, S_contra, E, MP_contra, RR_co, K, K | Rest],
handler: Callable[[X_co], Effect[S_contra | Deferred[S_contra, E], E, R1 | MP_contra]],
/,
) -> EntityHandlers[G_co, RR_co | R1, Rest]: ...
@overload
def __call__(
self: Bound[G_co, X_co, S_contra, E, MP_contra, RR_co, K, Never],
handler: Callable[[X_co], Effect[S_contra | Deferred[S_contra, E], E, MP_contra]],
/,
) -> EntityHandlers[G_co, RR_co]: ...
@overload
def __call__[R1](
self: Bound[G_co, X_co, S_contra, E, MP_contra, RR_co, K, Never],
handler: Callable[[X_co], Effect[S_contra | Deferred[S_contra, E], E, R1 | MP_contra]],
/,
) -> EntityHandlers[G_co, RR_co | R1]: ...
def __call__(self: Bound[Any, Any, Any, Any, Any, Any, Any, Any], handler: Any, /) -> Any:
return _Slot.__call__(self, handler)