pub(crate) struct RedeemState<C, Q> {
pub(crate) lock: Arc<AtomicBool>,
pub(crate) queue: Arc<RwLock<Q>>,
pub(crate) chain: C,
pub(crate) min_redeem_value: HoprBalance,
pub(crate) channel_id: ChannelId,
}Fields§
§lock: Arc<AtomicBool>§queue: Arc<RwLock<Q>>§chain: C§min_redeem_value: HoprBalance§channel_id: ChannelIdTrait Implementations§
Auto Trait Implementations§
impl<C, Q> Freeze for RedeemState<C, Q>where
C: Freeze,
impl<C, Q> !RefUnwindSafe for RedeemState<C, Q>
impl<C, Q> Send for RedeemState<C, Q>
impl<C, Q> Sync for RedeemState<C, Q>
impl<C, Q> Unpin for RedeemState<C, Q>where
C: Unpin,
impl<C, Q> !UnwindSafe for RedeemState<C, Q>
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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