pub enum LaneTxWithError<E> {
Full,
Failed,
Encode(E),
}Expand description
Error returned by fallible slot-write publish APIs.
This distinguishes:
- backpressure (
Full) - backing failures (
Failed) - user-provided encoder failures (
Encode(E)), which publish nothing.
Variants§
Full
The lane is full.
Failed
Any other TX failure.
Encode(E)
The user-provided encoder returned an error.
No message is published when this occurs.
Trait Implementations§
Source§impl<E: Debug> Debug for LaneTxWithError<E>
impl<E: Debug> Debug for LaneTxWithError<E>
Source§impl<E> From<LaneTxError> for LaneTxWithError<E>
impl<E> From<LaneTxError> for LaneTxWithError<E>
Source§fn from(value: LaneTxError) -> Self
fn from(value: LaneTxError) -> Self
Converts to this type from the input type.
Source§impl<E: PartialEq> PartialEq for LaneTxWithError<E>
impl<E: PartialEq> PartialEq for LaneTxWithError<E>
impl<E: Eq> Eq for LaneTxWithError<E>
impl<E> StructuralPartialEq for LaneTxWithError<E>
Auto Trait Implementations§
impl<E> Freeze for LaneTxWithError<E>where
E: Freeze,
impl<E> RefUnwindSafe for LaneTxWithError<E>where
E: RefUnwindSafe,
impl<E> Send for LaneTxWithError<E>where
E: Send,
impl<E> Sync for LaneTxWithError<E>where
E: Sync,
impl<E> Unpin for LaneTxWithError<E>where
E: Unpin,
impl<E> UnwindSafe for LaneTxWithError<E>where
E: UnwindSafe,
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