Struct svc_compliance::amqp::AMQPChannel
source · pub struct AMQPChannel {
pub channel: Option<Channel>,
}
Expand description
Wrapper struct to allow unit testing on un-connected amqp_channel
Fields§
§channel: Option<Channel>
The lapin::Channel if available
Implementations§
source§impl AMQPChannel
impl AMQPChannel
sourcepub async fn basic_publish(
&self,
exchange: &str,
routing_key: &str,
options: BasicPublishOptions,
payload: &[u8],
properties: BasicProperties
) -> Result<PublisherConfirm>
pub async fn basic_publish( &self, exchange: &str, routing_key: &str, options: BasicPublishOptions, payload: &[u8], properties: BasicProperties ) -> Result<PublisherConfirm>
Wrapper function for lapin::Channel basic_publish
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AMQPChannel
impl Send for AMQPChannel
impl Sync for AMQPChannel
impl Unpin for AMQPChannel
impl !UnwindSafe for AMQPChannel
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request