Struct pinky_swear::PinkyErrorBroadcaster
source · [−]pub struct PinkyErrorBroadcaster<T, E: Clone> { /* private fields */ }
Expand description
A PinkyErrorBroadcaster allows you to broacast the success/error of a promise resolution to several subscribers.
Implementations
Create a new promise with associated error broadcaster
Add a marker to logs
pub fn subscribe(&self) -> PinkySwear<Result<(), E>>ⓘNotable traits for PinkySwear<T>impl<T: Send + 'static> Future for PinkySwear<T> type Output = T;
pub fn subscribe(&self) -> PinkySwear<Result<(), E>>ⓘNotable traits for PinkySwear<T>impl<T: Send + 'static> Future for PinkySwear<T> type Output = T;
Notable traits for PinkySwear<T>
impl<T: Send + 'static> Future for PinkySwear<T> type Output = T;
Subscribe to receive a broacast when the underlying promise get henoured.
Unsubscribe a promise from the broadcast.
Trait Implementations
Auto Trait Implementations
impl<T, E> !RefUnwindSafe for PinkyErrorBroadcaster<T, E>
impl<T, E> Send for PinkyErrorBroadcaster<T, E> where
E: Send,
T: Send,
impl<T, E> Sync for PinkyErrorBroadcaster<T, E> where
E: Send,
T: Send,
impl<T, E> Unpin for PinkyErrorBroadcaster<T, E>
impl<T, E> !UnwindSafe for PinkyErrorBroadcaster<T, E>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more