pub enum TxEmptyPolicy {
Skip,
Publish,
}Expand description
Compile-time description of a single bridge channel, including the message type carried on it.
This links its identifier to a payload type enforced at compile time and optionally provides a backend-specific default route/topic/path suggestion. Missions can override that default (or leave it unset) via the bridge configuration file.
Variants§
Skip
Skip the bridge send call when the channel’s input CuMsg has no payload.
Publish
Still call the bridge send method with a metadata-only CuMsg.
Trait Implementations§
Source§impl Clone for TxEmptyPolicy
impl Clone for TxEmptyPolicy
Source§fn clone(&self) -> TxEmptyPolicy
fn clone(&self) -> TxEmptyPolicy
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 TxEmptyPolicy
impl Debug for TxEmptyPolicy
Source§impl PartialEq for TxEmptyPolicy
impl PartialEq for TxEmptyPolicy
impl Copy for TxEmptyPolicy
impl Eq for TxEmptyPolicy
impl StructuralPartialEq for TxEmptyPolicy
Auto Trait Implementations§
impl Freeze for TxEmptyPolicy
impl RefUnwindSafe for TxEmptyPolicy
impl Send for TxEmptyPolicy
impl Sync for TxEmptyPolicy
impl Unpin for TxEmptyPolicy
impl UnsafeUnpin for TxEmptyPolicy
impl UnwindSafe for TxEmptyPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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