pub struct Msg {
pub subject: String,
pub payload: Bytes,
pub headers: HashMap<String, String>,
pub ack: AckHandle,
}Expand description
Re-exports every public item from klieo-core.
One message delivered to a subscriber.
Fields§
§subject: StringSubject the message was published on.
payload: BytesPayload bytes.
headers: HashMap<String, String>Headers.
ack: AckHandleAcknowledgement handle. The impl provides the underlying mechanism;
callers must invoke exactly one of ack / nak / term per
message or rely on visibility-timeout redelivery.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Msg
impl !RefUnwindSafe for Msg
impl Send for Msg
impl Sync for Msg
impl Unpin for Msg
impl UnsafeUnpin for Msg
impl !UnwindSafe for Msg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more