pub struct PageCursor { /* private fields */ }Expand description
A serializable continuation bound to the original operation and request.
Treat persisted cursors as opaque values. Validation runs again when used.
Implementations§
Source§impl PageCursor
impl PageCursor
Sourcepub fn continuation(provider: Provider, target: String) -> Self
pub fn continuation(provider: Provider, target: String) -> Self
A continuation for an adapter to return in ProviderPage::next.
provider must be the adapter’s own id and target is whatever state the
adapter needs to fetch the next page. The routing layer binds the cursor to
the operation and request, and checks both before handing it back.
Sourcepub fn target(&self) -> &str
pub fn target(&self) -> &str
The adapter state passed to continuation.
Trait Implementations§
Source§impl Clone for PageCursor
impl Clone for PageCursor
Source§impl Debug for PageCursor
impl Debug for PageCursor
Source§impl<'de> Deserialize<'de> for PageCursor
impl<'de> Deserialize<'de> for PageCursor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PageCursor
Source§impl PartialEq for PageCursor
impl PartialEq for PageCursor
Source§impl Serialize for PageCursor
impl Serialize for PageCursor
impl StructuralPartialEq for PageCursor
Auto Trait Implementations§
impl Freeze for PageCursor
impl RefUnwindSafe for PageCursor
impl Send for PageCursor
impl Sync for PageCursor
impl Unpin for PageCursor
impl UnsafeUnpin for PageCursor
impl UnwindSafe for PageCursor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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<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