Expand description
§Overview
Idiomatic Rust API’s to the IBM® MQ Interface (MQI) and MQ Administration Interface (MQAI).
You can use mqi
to:
- Connect to an IBM MQ server to send and receive MQ messages through the MQI functions
- Administer IBM MQ server through the MQAI functions
This crate depends on the libmqm-sys crate for connectivity to MQ queue managers. The underlying connection uses the IBM supplied MQ libraries, offering proven stability and performance.
§Feature Flags
tracing
— Enable tracing in the MQI callsmqai
— Enable the administrative APIexits
— Enable the exits APIlink
(enabled by default) — Link the MQI library at compile timedlopen2
— Enable runtime loading of the MQI library usingdlopen2
mock
— MQI and MQAI function mocking for unit and integration testsmqc_9_2_0_0
(enabled by default) — Minimum MQ client version 9.2.0.0mqc_9_4_3_0
— Minimum MQ client version 9.4.3.0mqc_latest
— Minimum MQ client version latest release
Modules§
- attribute
- bag
mqai
- connection
- constants
- execute
mqai
- get
- handle
- header
- open
- prelude
- properties
- put
- result
- stat
- string
- structs
- subscription
- traits
- types
- verb
Macros§
- mqstr
- Define a
MqStr
from constant&str
.
Structs§
- Connection
- A connection to an IBM MQ queue manager
- Connection
Ref - A logical reference to a
Connection
- Event
Callback - Manage the event handler callback of a connection
- MqFunctions
- A set of wrapper functions on the native IBM MQ API’s
- MqStr
- Fixed width string with trailing white space/nulls commonly used with IBM MQ API’s
- Object
- An object refers to a managed entity within IBM MQ, such as a queue, topic, channel, or queue manager
- Properties
- Manage message properties
- Subscription
- Subscription to an IBM MQ topic
- Syncpoint
- Manage the state of syncpoint of a connection
Traits§
- Library
- Holds a reference to an implementation of an MQ library
- Mqai
Library mqai
Functions§
- connect
link
- Create a connection to a queue manager using the compile time linked MQ library.
- connect_
as link
- Create a connection to a queue manager using the compile time linked MQ library
and type inferred
ConnectValue
. - connect_
lib - Create a connection to a queue manager using a
Library
returning aConnection
. - connect_
lib_ as - Create a connection to a queue manager using a
Library
returning a usually inferredConnectValue
. - connect_
lib_ with - Create a connection to a queue manager using a
Library
returning a (Connection
, implConnectAttr
) tuple. - connect_
with link
- Create a connection to a queue manager and return an implementation of
ConnectAttr
in tuple using the compile time linked MQ library.