[−][src]Struct amiquip::Publish
Wrapper for a message to be published.
Fields
body: &'a [u8]
Body of content to send.
routing_key: String
Routing key.
mandatory: bool
If true, return this message to us if it cannot be routed to a queue. See
Channel::listen_for_returns
for receiving returned messages.
immediate: bool
If true, return this message to us if it cannot immediately be routed to a consumer. See
Channel::listen_for_returns
for receiving returned messages.
properties: AmqpProperties
Other properties of the message (e.g., headers).
Implementations
impl<'a> Publish<'a>
[src]
pub fn new<S: Into<String>>(body: &[u8], routing_key: S) -> Publish<'_>
[src]
Helper to create a message with the given body and routing key; mandatory
and
immediate
will be set to false, and properties
will be empty.
pub fn with_properties<S: Into<String>>(
body: &[u8],
routing_key: S,
properties: AmqpProperties
) -> Publish<'_>
[src]
body: &[u8],
routing_key: S,
properties: AmqpProperties
) -> Publish<'_>
Helper to create a message with the given body, routing key, and properties; mandatory
and immediate
will be set to false.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Publish<'a>
impl<'a> Send for Publish<'a>
impl<'a> Sync for Publish<'a>
impl<'a> Unpin for Publish<'a>
impl<'a> UnwindSafe for Publish<'a>
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>,