pub enum AMQPFrame {
Header,
Method(Channel, ClassMethod, MethodFrameArgs),
ContentHeader(ContentHeaderFrame),
ContentBody(ContentBodyFrame),
Heartbeat(Channel),
}Expand description
Represents an AMQP frame.
Variants§
Header
Header is to be sent to the server at first, announcing the AMQP version we support
Method(Channel, ClassMethod, MethodFrameArgs)
Represents the AMQP RPC frames. Connection based calls have a channel number 0, otherwise
channel is the current channel on which the frames are sent. The RPC arguments are
represented in MethodFrameArgs.
ContentHeader(ContentHeaderFrame)
ContentBody(ContentBodyFrame)
Heartbeat(Channel)
Trait Implementations§
Source§impl From<ContentBodyFrame> for AMQPFrame
impl From<ContentBodyFrame> for AMQPFrame
Source§fn from(cbf: ContentBodyFrame) -> AMQPFrame
fn from(cbf: ContentBodyFrame) -> AMQPFrame
Converts to this type from the input type.
Source§impl From<ContentHeaderFrame> for AMQPFrame
impl From<ContentHeaderFrame> for AMQPFrame
Source§fn from(chf: ContentHeaderFrame) -> AMQPFrame
fn from(chf: ContentHeaderFrame) -> AMQPFrame
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AMQPFrame
impl RefUnwindSafe for AMQPFrame
impl Send for AMQPFrame
impl Sync for AMQPFrame
impl Unpin for AMQPFrame
impl UnwindSafe for AMQPFrame
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