pub struct Publish {
pub ticket: u16,
pub exchange: String,
pub routing_key: String,
pub mandatory: bool,
pub immediate: bool,
}Fields§
§ticket: u16§exchange: String§routing_key: String§mandatory: bool§immediate: boolTrait Implementations§
Source§impl Method for Publish
impl Method for Publish
fn decode(method_frame: MethodFrame) -> Result<Self>where
Self: Sized,
fn encode(&self) -> Result<EncodedMethod>
fn name(&self) -> &'static str
fn id(&self) -> u16
fn class_id(&self) -> u16
fn encode_method_frame(&self) -> Result<FramePayload>
fn to_frame(&self, channel: u16) -> Result<Frame>
impl Send for Publish
impl StructuralPartialEq for Publish
Auto Trait Implementations§
impl Freeze for Publish
impl RefUnwindSafe for Publish
impl Sync for Publish
impl Unpin for Publish
impl UnwindSafe for Publish
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