pub struct CachedQueueMap<Q>(pub(crate) DashMap<ChannelId, ChannelTicketQueue<ValueCachedQueue<Q>>, RandomState>);Tuple Fields§
§0: DashMap<ChannelId, ChannelTicketQueue<ValueCachedQueue<Q>>, RandomState>Trait Implementations§
Source§impl<Q: Debug> Debug for CachedQueueMap<Q>
impl<Q: Debug> Debug for CachedQueueMap<Q>
Source§impl<Q> Default for CachedQueueMap<Q>
impl<Q> Default for CachedQueueMap<Q>
Source§impl<Q: TicketQueue> UnrealizedValue for CachedQueueMap<Q>
impl<Q: TicketQueue> UnrealizedValue for CachedQueueMap<Q>
Source§fn unrealized_value(
&self,
channel_id: &ChannelId,
min_index: Option<u64>,
) -> Result<Option<HoprBalance>, TicketManagerError>
fn unrealized_value( &self, channel_id: &ChannelId, min_index: Option<u64>, ) -> Result<Option<HoprBalance>, TicketManagerError>
Returns the total value of the tickets in the given queue, or None if no such ticket queue exists.
Auto Trait Implementations§
impl<Q> Freeze for CachedQueueMap<Q>
impl<Q> !RefUnwindSafe for CachedQueueMap<Q>
impl<Q> Send for CachedQueueMap<Q>
impl<Q> Sync for CachedQueueMap<Q>
impl<Q> Unpin for CachedQueueMap<Q>
impl<Q> !UnwindSafe for CachedQueueMap<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