pub enum MethodPayload {
Connection(ConnectionClass),
Channel(ChannelClass),
Exchange(ExchangeClass),
Queue(QueueClass),
Basic(BasicClass),
Tx(TxClass),
}Variants§
Connection(ConnectionClass)
Channel(ChannelClass)
Exchange(ExchangeClass)
Queue(QueueClass)
Basic(BasicClass)
Tx(TxClass)
Implementations§
Source§impl MethodPayload
impl MethodPayload
pub fn connection(&self) -> Option<&ConnectionClass>
pub fn channel(&self) -> Option<&ChannelClass>
pub fn exchange(&self) -> Option<&ExchangeClass>
pub fn queue(&self) -> Option<&QueueClass>
pub fn basic(&self) -> Option<&BasicClass>
pub fn tx(&self) -> Option<&TxClass>
Trait Implementations§
Source§impl Clone for MethodPayload
impl Clone for MethodPayload
Source§fn clone(&self) -> MethodPayload
fn clone(&self) -> MethodPayload
Returns a duplicate 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 MethodPayload
impl Debug for MethodPayload
Source§impl PartialEq for MethodPayload
impl PartialEq for MethodPayload
impl StructuralPartialEq for MethodPayload
Auto Trait Implementations§
impl !Freeze for MethodPayload
impl RefUnwindSafe for MethodPayload
impl Send for MethodPayload
impl Sync for MethodPayload
impl Unpin for MethodPayload
impl UnwindSafe for MethodPayload
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