Enum amq_protocol::frame::AMQPChannel
source · pub enum AMQPChannel {
Global,
Id(ChannelId),
}
Expand description
Enum representing an AMQP channel
Variants§
Global
The Global (id 0) AMQP channel used for creating other channels and for heartbeat
Id(ChannelId)
A regular AMQP channel
Implementations§
Trait Implementations§
source§impl Clone for AMQPChannel
impl Clone for AMQPChannel
source§fn clone(&self) -> AMQPChannel
fn clone(&self) -> AMQPChannel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AMQPChannel
impl Debug for AMQPChannel
source§impl From<u16> for AMQPChannel
impl From<u16> for AMQPChannel
source§fn from(id: ChannelId) -> AMQPChannel
fn from(id: ChannelId) -> AMQPChannel
Converts to this type from the input type.
source§impl PartialEq for AMQPChannel
impl PartialEq for AMQPChannel
source§fn eq(&self, other: &AMQPChannel) -> bool
fn eq(&self, other: &AMQPChannel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AMQPChannel
impl Eq for AMQPChannel
impl StructuralPartialEq for AMQPChannel
Auto Trait Implementations§
impl Freeze for AMQPChannel
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