Module mcai_worker_sdk::prelude [−][src]
Re-exports
pub use crate::job::Job; | |
pub use crate::message::publish_job_progression; | |
pub use crate::message_exchange::rabbitmq::*; | |
pub use crate::message_exchange::ExternalExchange; | |
pub use crate::parameter::MediaSegment; | |
pub use crate::parameter::MediaSegments; | |
pub use crate::parameter::Parameter; | |
pub use crate::parameter::ParameterValue; | |
pub use crate::parameter::Requirement; | |
pub use crate::processor::Processor; | |
pub use crate::McaiChannel; | |
pub use crate::MessageEvent; |
Macros
debug | Logs a message at the debug level. |
error | Logs a message at the error level. |
info | Logs a message at the info level. |
trace | Logs a message at the trace level. |
warn | Logs a message at the warn level. |
Structs
Arc | A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’. |
Channel | |
JobProgression | |
JobResult | |
LocalExchange | |
Mutex | A mutual exclusion primitive useful for protecting shared data |
ProcessStatus | |
RabbitmqExchange | |
SystemInformation | Hardware information where the worker is running |
Version | Represents a version number conforming to the semantic versioning scheme. |
WorkerConfiguration | Structure that contains configuration for that worker |
WorkerParameter | |
WorkerStatus | Container to generate the status message for the worker |
Enums
Feedback | |
JobStatus | |
MessageError | Internal error status to manage process errors |
OrderMessage | Message to start actions on the worker itself |
ResponseMessage | Message from the Worker to the Message Exchange |
WorkerActivity | Worker activity mode |
WorkerParameterType |
Traits
JsonSchema | A type which can be described as a JSON Schema document. |
Functions
start_worker | Function to start a worker |
Type Definitions
Result |
Derive Macros
JsonSchema |