Struct fdb_rl::cursor::cursor_result::CursorSuccess
source · pub struct CursorSuccess<T> {
value: T,
continuation: CursorResultContinuation,
}
Expand description
Object of type T
produced by a Cursor
along with a
CursorResultContinuation
.
Fields§
§value: T
§continuation: CursorResultContinuation
Implementations§
source§impl<T> CursorSuccess<T>
impl<T> CursorSuccess<T>
sourcepub(crate) fn new(
value: T,
continuation: CursorResultContinuation
) -> CursorSuccess<T>
pub(crate) fn new( value: T, continuation: CursorResultContinuation ) -> CursorSuccess<T>
Construct a new CursorSuccess
.
sourcepub fn map<F, U>(self, f: F) -> CursorSuccess<U>where
F: FnOnce(T) -> U,
pub fn map<F, U>(self, f: F) -> CursorSuccess<U>where F: FnOnce(T) -> U,
Map CursorSuccess<T>
to CursorSuccess<U>
.
sourcepub fn get_value_ref(&self) -> &T
pub fn get_value_ref(&self) -> &T
Gets a reference to success value from CursorSuccess
.
sourcepub fn get_continuation_ref(&self) -> &CursorResultContinuation
pub fn get_continuation_ref(&self) -> &CursorResultContinuation
Gets a reference to continuation from CursorSuccess
.
sourcepub fn into_value(self) -> T
pub fn into_value(self) -> T
Extract success value from CursorSuccess
.
sourcepub fn into_continuation(self) -> CursorResultContinuation
pub fn into_continuation(self) -> CursorResultContinuation
Extract continuation from CursorSuccess
.
sourcepub fn into_parts(self) -> (T, CursorResultContinuation)
pub fn into_parts(self) -> (T, CursorResultContinuation)
Extract success value and continuation from CursorSuccess
.
Trait Implementations§
source§impl<T: Clone> Clone for CursorSuccess<T>
impl<T: Clone> Clone for CursorSuccess<T>
source§fn clone(&self) -> CursorSuccess<T>
fn clone(&self) -> CursorSuccess<T>
Returns a copy of the value. Read more
1.0.0 · 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<T> !RefUnwindSafe for CursorSuccess<T>
impl<T> Send for CursorSuccess<T>where T: Send,
impl<T> Sync for CursorSuccess<T>where T: Sync,
impl<T> Unpin for CursorSuccess<T>where T: Unpin,
impl<T> !UnwindSafe for CursorSuccess<T>
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