Module util

Module util 

Source
Expand description

Exposes convenience layers around lapin types.

Constants§

HEADER_ATTEMPT
Special name of the RabbitMQ header that stores the attempt number (how many times the processing of this message has been attempted).

Traits§

Attempt
Artificial trait implemented for FieldTable to allow convenient handling of the header HEADER_ATTEMPT that carries the processing attempt number.
Coerce
Artificial trait implemented for a few types like AMQPValue or ShortString to allow conveniently coercing them into standard Rust types.
IsEmpty
Artificial trait implemented for AMQPValue to allow reporting whether it can be considered empty.
Morph
Artificial trait implemented for a few types like AMQPValue or ShortString to allow infallibly morphing (instantiating) them from standard Rust types.
Push
Artificial trait implemented for FieldTable to allow inserting AMQPValues infallibly instantiated from most applicable types.
PushAppId
Artificial trait implemented for AMQPProperties to allow conveniently inserting the app ID, coercing it from various types.
PushClusterId
Artificial trait implemented for AMQPProperties to allow conveniently inserting the cluster ID, coercing it from various types.
PushContentEncoding
Artificial trait implemented for AMQPProperties to allow conveniently inserting the content encoding, coercing it from various types.
PushContentType
Artificial trait implemented for AMQPProperties to allow conveniently inserting the content type, coercing it from various types.
PushCorrelationId
Artificial trait implemented for AMQPProperties to allow conveniently inserting the correlation ID, coercing it from various types.
PushExpiration
Artificial trait implemented for AMQPProperties to allow conveniently inserting the expiration value, coercing it from various types.
PushHeader
Artificial trait implemented for AMQPProperties to allow conveniently inserting the header value by key, coercing it from various types.
PushKind
Artificial trait implemented for AMQPProperties to allow conveniently inserting the message kind, coercing it from various types.
PushMessageId
Artificial trait implemented for AMQPProperties to allow conveniently inserting the message ID, coercing it from various types.
PushReplyTo
Artificial trait implemented for AMQPProperties to allow conveniently inserting the “reply-to” value, coercing it from various types.
PushUserId
Artificial trait implemented for AMQPProperties to allow conveniently inserting the user ID, coercing it from various types.
Retrieve
Artificial trait implemented for FieldTable to allow optional retrieval of inferred, typed values from the underlying map.
RetrieveAppId
Artificial trait implemented for AMQPProperties to allow conveniently extracting the app ID, coercing it into various types.
RetrieveClusterId
Artificial trait implemented for AMQPProperties to allow conveniently extracting the cluster ID, coercing it into various types.
RetrieveContentEncoding
Artificial trait implemented for AMQPProperties to allow conveniently extracting the content encoding, coercing it into various types.
RetrieveContentType
Artificial trait implemented for AMQPProperties to allow conveniently extracting the content type, coercing it into various types.
RetrieveCorrelationId
Artificial trait implemented for AMQPProperties to allow conveniently extracting the correlation ID, coercing it into various types.
RetrieveExpiration
Artificial trait implemented for AMQPProperties to allow conveniently extracting the expiration value, coercing it into various types.
RetrieveHeader
Artificial trait implemented for AMQPProperties to allow conveniently extracting the header value by key, coercing it into various types.
RetrieveKind
Artificial trait implemented for AMQPProperties to allow conveniently extracting the message kind, coercing it into various types.
RetrieveMessageId
Artificial trait implemented for AMQPProperties to allow conveniently extracting the message ID, coercing it into various types.
RetrievePushMap
Convenience layer around AMQPProperties that allows easier getting and setting of the common properties.
RetrieveReplyTo
Artificial trait implemented for AMQPProperties to allow conveniently extracting the “reply-to” value, coercing it into various types.
RetrieveUserId
Artificial trait implemented for AMQPProperties to allow conveniently extracting the user ID, coercing it into various types.