[−][src]Struct amiquip::Get
A message delivered in response to a get
request.
Fields
delivery: Delivery
The message.
message_count: u32
The number of messages present in the queue at the time the get was serviced.
Implementations
impl Get
[src]
pub fn ack(self, channel: &Channel) -> Result<()>
[src]
Calls Delivery::ack
on self.delivery
.
pub fn ack_multiple(self, channel: &Channel) -> Result<()>
[src]
Calls Delivery::ack_multiple
on
self.delivery
.
pub fn nack(self, channel: &Channel, requeue: bool) -> Result<()>
[src]
Calls Delivery::nack
on self.delivery
.
pub fn nack_multiple(self, channel: &Channel, requeue: bool) -> Result<()>
[src]
Calls Delivery::nack_multiple
on
self.delivery
.
pub fn reject(self, channel: &Channel, requeue: bool) -> Result<()>
[src]
Calls Delivery::reject
on self.delivery
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Get
impl Send for Get
impl Sync for Get
impl Unpin for Get
impl UnwindSafe for Get
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,