Struct pinky_swear::PinkySwear
source · pub struct PinkySwear<T> { /* private fields */ }
Expand description
A PinkySwear is a Promise that the other party is supposed to honour at some point.
Implementations§
source§impl<T: Send + 'static> PinkySwear<T>
impl<T: Send + 'static> PinkySwear<T>
sourcepub fn new_with_data(data: T) -> Self
pub fn new_with_data(data: T) -> Self
Create a new PinkySwear and honour it at the same time.
sourcepub fn set_marker(&self, marker: String)
pub fn set_marker(&self, marker: String)
Add a marker to logs
Trait Implementations§
source§impl<T> Debug for PinkySwear<T>
impl<T> Debug for PinkySwear<T>
source§impl<T> Drop for PinkySwear<T>
impl<T> Drop for PinkySwear<T>
source§impl<T: Send + 'static> Future for PinkySwear<T>
impl<T: Send + 'static> Future for PinkySwear<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for PinkySwear<T>
impl<T> Send for PinkySwear<T>where T: Send,
impl<T> Sync for PinkySwear<T>where T: Send,
impl<T> Unpin for PinkySwear<T>
impl<T> !UnwindSafe for PinkySwear<T>
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere F: Future,
§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more