pub struct Header {
pub durable: bool,
pub priority: u8,
pub ttl: Option<Milliseconds>,
pub first_acquirer: bool,
pub delivery_count: u32,
}
Fields§
§durable: bool
§priority: u8
§ttl: Option<Milliseconds>
§first_acquirer: bool
§delivery_count: u32
Implementations§
Source§impl Header
impl Header
pub fn durable(&self) -> bool
pub fn durable_mut(&mut self) -> &mut bool
pub fn priority(&self) -> u8
pub fn priority_mut(&mut self) -> &mut u8
pub fn ttl(&self) -> Option<Milliseconds>
pub fn ttl_mut(&mut self) -> &mut Option<Milliseconds>
pub fn first_acquirer(&self) -> bool
pub fn first_acquirer_mut(&mut self) -> &mut bool
pub fn delivery_count(&self) -> u32
pub fn delivery_count_mut(&mut self) -> &mut u32
Trait Implementations§
Source§impl DecodeFormatted for Header
impl DecodeFormatted for Header
fn decode_with_format( input: &mut Bytes, fmt: u8, ) -> Result<Self, AmqpParseError>
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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