Struct PublishCommand
pub(crate) struct PublishCommand {
pub(crate) topic: TopicBuf,
pub(crate) payload: Vec<u8>,
pub(crate) qos: QoS,
pub(crate) retain: bool,
pub(crate) properties: PublishOptions,
pub(crate) progress_tx: Sender<PublishProgress>,
pub(crate) queued_tx: Option<Sender<Result<(), Error>>>,
pub(crate) completion_tx: Sender<Result<ReasonCode, Error>>,
}Available on crate feature
tokio only.Expand description
A publish request from a client handle.
Fields§
§topic: TopicBuf§payload: Vec<u8>§qos: QoS§retain: bool§properties: PublishOptions§progress_tx: Sender<PublishProgress>§queued_tx: Option<Sender<Result<(), Error>>>§completion_tx: Sender<Result<ReasonCode, Error>>Auto Trait Implementations§
impl !RefUnwindSafe for PublishCommand
impl !UnwindSafe for PublishCommand
impl Freeze for PublishCommand
impl Send for PublishCommand
impl Sync for PublishCommand
impl Unpin for PublishCommand
impl UnsafeUnpin for PublishCommand
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more