pub struct NetworkFollow { /* private fields */ }Expand description
Follows one open store’s network watch from opening to closing: built as the store opens, already showing what the platform says, and closed before the database. It keeps the watch, whose platform registration ends with it.
Implementations§
Source§impl NetworkFollow
impl NetworkFollow
Sourcepub fn start(
watched: NetworkWatch,
waits: Arc<RetryWaits>,
database: StoreDatabase,
) -> Self
pub fn start( watched: NetworkWatch, waits: Arc<RetryWaits>, database: StoreDatabase, ) -> Self
Show the network as the watch says it is now, report it if it is usable, so a wait saved before the store opened ends now, then follow each change.
Sourcepub fn parked_from_now(&self) -> impl Future<Output = ()> + Send + 'static
pub fn parked_from_now(&self) -> impl Future<Output = ()> + Send + 'static
Each time the follower has reported every network change it was told of, and waits for the next.
Auto Trait Implementations§
impl !Freeze for NetworkFollow
impl !RefUnwindSafe for NetworkFollow
impl !UnwindSafe for NetworkFollow
impl Send for NetworkFollow
impl Sync for NetworkFollow
impl Unpin for NetworkFollow
impl UnsafeUnpin for NetworkFollow
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreCreates a shared type from an unshared type.