Skip to main content

Subject

Trait Subject 

Source
pub trait Subject:
    Clone
    + Eq
    + Hash
    + Send
    + Sync
    + 'static {
    // Required method
    fn as_str(&self) -> &str;
}
Expand description

What delivery orders by: one subject’s events keep their relative order.

Typically a stream or session identity. It is a hash key and a metrics-free value, so the bounds are only what the queue needs, plus a borrowed string for the CloudEvents subject attribute.

Sync because a hook’s configuration and its in-flight envelopes are shared behind an Arc across the dispatcher’s tasks.

Required Methods§

Source

fn as_str(&self) -> &str

How this subject is spelled in the envelope.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§