Skip to main content

Crate sails_idl_meta

Crate sails_idl_meta 

Source

Structs§

AnyServiceMeta
BaseServiceMeta
HeaderLength
Sails message header length.
InterfaceId
Unique identifier for a service (or “interface” in terms of sails binary protocol).
Magic
Sails message header’s protocol magic bytes.
MatchedInterface
The outcome of matching a message header against known interfaces.
MethodMetadata
Metadata for a service method.
SailsMessageHeader
Sails message header.
Version
Sails message header’s protocol version.

Constants§

HIGHEST_SUPPORTED_VERSION
Sails protocol highest supported version.
MAGIC_BYTES
Sails protocol magic bytes. Bytes stand for the UTF-8 string GM.
MINIMAL_HLEN
Minimal Sails message header length in bytes.

Traits§

Identifiable
A trait for types that have a static Interface ID.
MethodMeta
A trait for types that represent a service method, providing its Entry ID.
ProgramMeta
ServiceMeta

Functions§

bytes32_eq
count_base_services
find_id
find_method_data
interface_ids
Generate interface IDs array from exposed services
service_has_interface_id
str_eq