Struct rabbitmq_stream_protocol::message::Message
source · [−]pub struct Message(_);
Expand description
API for inbound and outbound messages
Implementations
sourceimpl Message
impl Message
sourcepub fn value_ref<'a, T>(&'a self) -> Result<Option<T>, DecodeError> where
T: TryFrom<&'a Value, Error = DecodeError>,
pub fn value_ref<'a, T>(&'a self) -> Result<Option<T>, DecodeError> where
T: TryFrom<&'a Value, Error = DecodeError>,
Extract a value as reference from the amqp-value
section of the body if present
sourcepub fn properties(&self) -> Option<&Properties>
pub fn properties(&self) -> Option<&Properties>
Get the properties of the message
sourcepub fn message_annotations(&self) -> Option<&MessageAnnotations>
pub fn message_annotations(&self) -> Option<&MessageAnnotations>
Get the annotations of the message
sourcepub fn application_properties(&self) -> Option<&ApplicationProperties>
pub fn application_properties(&self) -> Option<&ApplicationProperties>
Get the application properties of the message
sourcepub fn delivery_annotations(&self) -> Option<&DeliveryAnnotations>
pub fn delivery_annotations(&self) -> Option<&DeliveryAnnotations>
Get the delivery annotations of the message
sourcepub fn publishing_id(&self) -> Option<&u64>
pub fn publishing_id(&self) -> Option<&u64>
Get a reference to the message’s publishing id.
Trait Implementations
sourceimpl Encoder for Message
impl Encoder for Message
fn encoded_size(&self) -> u32
fn encode(&self, writer: &mut impl Write) -> Result<(), EncodeError>
impl StructuralPartialEq for Message
Auto Trait Implementations
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more