Ice.Object

class Ice.Object

Bases: object

The base class for servants.

ice_id(current: Current) str | Awaitable[str]

Obtain the type ID corresponding to the most-derived Slice interface supported by the target object.

Parameters:

current (Current) – The current context.

Returns:

The type ID.

Return type:

str

ice_ids(current: Current) Sequence[str] | Awaitable[Sequence[str]]

Obtain the type IDs corresponding to the Slice interfaces that are supported by the target object.

Parameters:

current (Current) – The current context.

Returns:

A list of type IDs.

Return type:

Sequence[str]

ice_isA(id: str, current: Current) bool | Awaitable[bool]

Determine whether the target object supports the interface denoted by the given Slice type ID.

Parameters:
  • id (str) – The Slice type ID.

  • current (Current) – The current context.

Returns:

True if the target object supports the interface, False otherwise.

Return type:

bool

ice_ping(current: Current) None | Awaitable[None]

A reachability test for the target object.

Parameters:

current (Current) – The current context.

Return type:

None | Awaitable[None]

static ice_staticId() str

Obtain the type ID of the Slice interface.

Returns:

The type ID.

Return type:

str