pub struct ChainPager<P: Chained> { /* private fields */ }Expand description
Where a view stands reading back through a chain. See the
module docs (self).
Implementations§
Source§impl<P: Chained> ChainPager<P>
impl<P: Chained> ChainPager<P>
pub fn new(chain: Chain<P>) -> Self
pub fn chain(&self) -> &Chain<P>
Sourcepub fn oldest(&self) -> Option<u64>
pub fn oldest(&self) -> Option<u64>
The oldest part held or asked for; None while nothing was written
to the chain.
Sourcepub fn has_earlier(&self) -> bool
pub fn has_earlier(&self) -> bool
Whether the chain has parts before the oldest held or asked for.
Sourcepub fn arriving(&self) -> bool
pub fn arriving(&self) -> bool
Whether a part asked for is still on its way from the workspace.
Whether a part asked for is not available from the workspace’s hosts: it is not coming until that changes, and nothing before it is asked for.
Sourcepub fn loading(&self) -> bool
pub fn loading(&self) -> bool
Whether the view shows a place for earlier items above what it holds: there are earlier parts, or one asked for is not here.
Sourcepub fn asked(&self) -> Option<&ArrivalClock>
pub fn asked(&self) -> Option<&ArrivalClock>
When the part on its way was asked for, and from where: what a
view’s placeholder for it steps through
(ui_core::widget::ArrivalFace). None while nothing is on its
way.
Sourcepub fn reached_top(&mut self)
pub fn reached_top(&mut self)
The reader came to the top of what is held: the next settle pass opens the part before.
Sourcepub fn seek(&mut self, found: impl Fn(&P::State) -> bool + 'static)
pub fn seek(&mut self, found: impl Fn(&P::State) -> bool + 'static)
Look for the item found names in the parts held, and open earlier
ones in turn until one has it: a settle pass answers Paged::Found
or Paged::NotFound.
Sourcepub fn wants_settle(&self) -> bool
pub fn wants_settle(&self) -> bool
Whether a settle pass has something to do now: a view asks for one (a frame) when this turns true.
Auto Trait Implementations§
impl<P> Freeze for ChainPager<P>
impl<P> !RefUnwindSafe for ChainPager<P>
impl<P> !Send for ChainPager<P>
impl<P> !Sync for ChainPager<P>
impl<P> Unpin for ChainPager<P>
impl<P> UnsafeUnpin for ChainPager<P>
impl<P> !UnwindSafe for ChainPager<P>
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§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>
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>
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