pub struct SessionSearchCursorCodec { /* private fields */ }Expand description
Keyed cursor encoder/validator. Encoded cursors contain no paths or backend row ids.
Implementations§
Source§impl SessionSearchCursorCodec
impl SessionSearchCursorCodec
Sourcepub fn encode(
&self,
binding: &SessionSearchCursorBinding,
) -> Result<String, SessionSearchError>
pub fn encode( &self, binding: &SessionSearchCursorBinding, ) -> Result<String, SessionSearchError>
Encode and authenticate a cursor binding.
§Errors
Returns a failed error if serialization unexpectedly fails.
Sourcepub fn decode(
&self,
cursor: &str,
) -> Result<SessionSearchCursorBinding, SessionSearchError>
pub fn decode( &self, cursor: &str, ) -> Result<SessionSearchCursorBinding, SessionSearchError>
Decode and authenticate an opaque cursor.
§Errors
Returns invalid_cursor for malformed or unauthenticated input.
Trait Implementations§
Source§impl Clone for SessionSearchCursorCodec
impl Clone for SessionSearchCursorCodec
Source§fn clone(&self) -> SessionSearchCursorCodec
fn clone(&self) -> SessionSearchCursorCodec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SessionSearchCursorCodec
impl RefUnwindSafe for SessionSearchCursorCodec
impl Send for SessionSearchCursorCodec
impl Sync for SessionSearchCursorCodec
impl Unpin for SessionSearchCursorCodec
impl UnsafeUnpin for SessionSearchCursorCodec
impl UnwindSafe for SessionSearchCursorCodec
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