pub struct Channel { /* private fields */ }

Implementations§

source§

impl Channel

source

pub fn status(&self) -> &ChannelStatus

source

pub fn id(&self) -> u16

source

pub fn close( &self, reply_code: u16, reply_text: &str ) -> PinkySwear<Result<(), Error>>

source

pub fn basic_consume( &self, queue: &str, consumer_tag: &str, options: BasicConsumeOptions, arguments: FieldTable ) -> PinkySwear<Result<Consumer, Error>, Result<(), Error>>

source

pub fn basic_get( &self, queue: &str, options: BasicGetOptions ) -> PinkySwear<Result<Option<BasicGetMessage>, Error>, Result<(), Error>>

source

pub fn exchange_declare( &self, exchange: &str, kind: ExchangeKind, options: ExchangeDeclareOptions, arguments: FieldTable ) -> PinkySwear<Result<(), Error>>

source

pub fn wait_for_confirms( &self ) -> PinkySwear<Result<Vec<BasicReturnMessage>, Error>, Result<Confirmation, Error>>

source§

impl Channel

source

pub fn channel_flow( &self, options: ChannelFlowOptions ) -> PinkySwear<Result<bool, Error>, Result<(), Error>>

source

pub fn do_channel_close( &self, reply_code: u16, reply_text: &str, class_id: u16, method_id: u16 ) -> PinkySwear<Result<(), Error>>

source

pub fn access_request( &self, realm: &str, options: AccessRequestOptions ) -> PinkySwear<Result<(), Error>>

source

pub fn do_exchange_declare( &self, exchange: &str, kind: &str, options: ExchangeDeclareOptions, arguments: FieldTable, exchange_kind: ExchangeKind ) -> PinkySwear<Result<(), Error>>

source

pub fn exchange_delete( &self, exchange: &str, options: ExchangeDeleteOptions ) -> PinkySwear<Result<(), Error>>

Delete an exchange

source

pub fn exchange_bind( &self, destination: &str, source: &str, routing_key: &str, options: ExchangeBindOptions, arguments: FieldTable ) -> PinkySwear<Result<(), Error>>

source

pub fn exchange_unbind( &self, destination: &str, source: &str, routing_key: &str, options: ExchangeUnbindOptions, arguments: FieldTable ) -> PinkySwear<Result<(), Error>>

source

pub fn queue_declare( &self, queue: &str, options: QueueDeclareOptions, arguments: FieldTable ) -> PinkySwear<Result<Queue, Error>, Result<(), Error>>

source

pub fn queue_bind( &self, queue: &str, exchange: &str, routing_key: &str, options: QueueBindOptions, arguments: FieldTable ) -> PinkySwear<Result<(), Error>>

source

pub fn queue_purge( &self, queue: &str, options: QueuePurgeOptions ) -> PinkySwear<Result<u32, Error>, Result<(), Error>>

source

pub fn queue_delete( &self, queue: &str, options: QueueDeleteOptions ) -> PinkySwear<Result<u32, Error>, Result<(), Error>>

source

pub fn queue_unbind( &self, queue: &str, exchange: &str, routing_key: &str, arguments: FieldTable ) -> PinkySwear<Result<(), Error>>

source

pub fn basic_qos( &self, prefetch_count: u16, options: BasicQosOptions ) -> PinkySwear<Result<(), Error>>

source

pub fn do_basic_consume( &self, queue: &str, consumer_tag: &str, options: BasicConsumeOptions, arguments: FieldTable, original: Option<Consumer> ) -> PinkySwear<Result<Consumer, Error>, Result<(), Error>>

source

pub fn basic_cancel( &self, consumer_tag: &str, options: BasicCancelOptions ) -> PinkySwear<Result<(), Error>>

source

pub fn basic_publish( &self, exchange: &str, routing_key: &str, options: BasicPublishOptions, payload: Vec<u8>, properties: AMQPProperties ) -> PinkySwear<Result<PublisherConfirm, Error>, Result<(), Error>>

source

pub fn do_basic_get( &self, queue: &str, options: BasicGetOptions, original: Option<Pinky<Result<Option<BasicGetMessage>, Error>>> ) -> PinkySwear<Result<Option<BasicGetMessage>, Error>, Result<(), Error>>

source

pub fn basic_ack( &self, delivery_tag: u64, options: BasicAckOptions ) -> PinkySwear<Result<(), Error>>

source

pub fn basic_reject( &self, delivery_tag: u64, options: BasicRejectOptions ) -> PinkySwear<Result<(), Error>>

source

pub fn basic_recover_async( &self, options: BasicRecoverAsyncOptions ) -> PinkySwear<Result<(), Error>>

source

pub fn basic_recover( &self, options: BasicRecoverOptions ) -> PinkySwear<Result<(), Error>>

source

pub fn basic_nack( &self, delivery_tag: u64, options: BasicNackOptions ) -> PinkySwear<Result<(), Error>>

source

pub fn tx_select(&self) -> PinkySwear<Result<(), Error>>

source

pub fn tx_commit(&self) -> PinkySwear<Result<(), Error>>

source

pub fn tx_rollback(&self) -> PinkySwear<Result<(), Error>>

source

pub fn confirm_select( &self, options: ConfirmSelectOptions ) -> PinkySwear<Result<(), Error>>

Trait Implementations§

source§

impl Clone for Channel

source§

fn clone(&self) -> Channel

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Channel

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl PartialEq for Channel

source§

fn eq(&self, other: &Channel) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneAny for T
where T: Any + Clone + Send + Sync,

§

fn clone_any(&self) -> Box<dyn CloneAny>

§

fn clone_any_send(&self) -> Box<dyn CloneAny + Send>

§

fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync>

§

fn clone_any_send_sync(&self) -> Box<dyn CloneAny + Sync + Send>

source§

impl<T> DynClone for T
where T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
§

impl<T> DebugAny for T
where T: Any + Debug,

§

impl<T> UnsafeAny for T
where T: Any,