pub struct DeliveredMessage {
pub subject: String,
pub subscription_id: usize,
pub reply_to: Option<String>,
pub payload_size: usize,
pub payload: Vec<u8>,
}
Expand description
Represents a message as per the NATS protocol documentation:
MSG <subject> <sid> [reply-to] <#bytes>\r\n[payload]\r\n
Fields§
§subject: String
§subscription_id: usize
§reply_to: Option<String>
§payload_size: usize
§payload: Vec<u8>
Implementations§
Trait Implementations§
Source§impl Clone for DeliveredMessage
impl Clone for DeliveredMessage
Source§fn clone(&self) -> DeliveredMessage
fn clone(&self) -> DeliveredMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DeliveredMessage
impl Debug for DeliveredMessage
Source§impl Display for DeliveredMessage
impl Display for DeliveredMessage
Source§impl FromStr for DeliveredMessage
impl FromStr for DeliveredMessage
Source§impl PartialEq for DeliveredMessage
impl PartialEq for DeliveredMessage
impl StructuralPartialEq for DeliveredMessage
Auto Trait Implementations§
impl Freeze for DeliveredMessage
impl RefUnwindSafe for DeliveredMessage
impl Send for DeliveredMessage
impl Sync for DeliveredMessage
impl Unpin for DeliveredMessage
impl UnwindSafe for DeliveredMessage
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