pub struct Message {
    pub id: Vec<u8>,
    pub timestamp: u64,
    pub attempts: u16,
    pub body: Vec<u8>,
}Expand description
NSQ消息格式
Fields§
§id: Vec<u8>唯一消息ID
timestamp: u64消息时间戳
attempts: u16消息尝试次数
body: Vec<u8>消息体
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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