pub struct HeaderCursorSession<'request, 'policy> { /* private fields */ }Expand description
Exact prepared-request context retained for one header-cursor traversal.
Implementations§
Source§impl HeaderCursorSession<'_, '_>
impl HeaderCursorSession<'_, '_>
Sourcepub async fn execute_async<'response, 'cursor, 'endpoint, T>(
&self,
transport: &'endpoint T,
response_storage: &'response mut [u8],
response_header_storage: &'response mut [u8],
decimal_scratch: &mut [u8],
transfer_scratch: &mut [u8],
cursor_destination: &'cursor mut [u8],
limits: PaginationLimits,
) -> Result<HeaderCursorPage<'response, 'cursor, 'endpoint, '_, '_, '_>, HeaderCursorExecutionError<T::Error>>where
T: AsyncAuthenticatedTransport + BoundTransport,
pub async fn execute_async<'response, 'cursor, 'endpoint, T>(
&self,
transport: &'endpoint T,
response_storage: &'response mut [u8],
response_header_storage: &'response mut [u8],
decimal_scratch: &mut [u8],
transfer_scratch: &mut [u8],
cursor_destination: &'cursor mut [u8],
limits: PaginationLimits,
) -> Result<HeaderCursorPage<'response, 'cursor, 'endpoint, '_, '_, '_>, HeaderCursorExecutionError<T::Error>>where
T: AsyncAuthenticatedTransport + BoundTransport,
Executes the initial executor-neutral async request and decodes its response.
Source§impl HeaderCursorSession<'_, '_>
impl HeaderCursorSession<'_, '_>
Sourcepub async fn execute_local_async<'response, 'cursor, 'endpoint, T>(
&self,
transport: &'endpoint T,
response_storage: &'response mut [u8],
response_header_storage: &'response mut [u8],
decimal_scratch: &mut [u8],
transfer_scratch: &mut [u8],
cursor_destination: &'cursor mut [u8],
limits: PaginationLimits,
) -> Result<HeaderCursorPage<'response, 'cursor, 'endpoint, '_, '_, '_>, HeaderCursorExecutionError<T::Error>>where
T: LocalAsyncAuthenticatedTransport + BoundTransport,
pub async fn execute_local_async<'response, 'cursor, 'endpoint, T>(
&self,
transport: &'endpoint T,
response_storage: &'response mut [u8],
response_header_storage: &'response mut [u8],
decimal_scratch: &mut [u8],
transfer_scratch: &mut [u8],
cursor_destination: &'cursor mut [u8],
limits: PaginationLimits,
) -> Result<HeaderCursorPage<'response, 'cursor, 'endpoint, '_, '_, '_>, HeaderCursorExecutionError<T::Error>>where
T: LocalAsyncAuthenticatedTransport + BoundTransport,
Executes the initial local async request and decodes its own response.
Source§impl HeaderCursorSession<'_, '_>
impl HeaderCursorSession<'_, '_>
Sourcepub const fn operation_id(&self) -> OperationId
pub const fn operation_id(&self) -> OperationId
Returns the operation retained by this exact request context.
Sourcepub fn execute_blocking<'response, 'cursor, 'endpoint, T>(
&self,
transport: &'endpoint T,
response_storage: &'response mut [u8],
response_header_storage: &'response mut [u8],
decimal_scratch: &mut [u8],
transfer_scratch: &mut [u8],
cursor_destination: &'cursor mut [u8],
limits: PaginationLimits,
) -> Result<HeaderCursorPage<'response, 'cursor, 'endpoint, '_, '_, '_>, HeaderCursorExecutionError<T::Error>>where
T: BlockingAuthenticatedTransport + BoundTransport,
pub fn execute_blocking<'response, 'cursor, 'endpoint, T>(
&self,
transport: &'endpoint T,
response_storage: &'response mut [u8],
response_header_storage: &'response mut [u8],
decimal_scratch: &mut [u8],
transfer_scratch: &mut [u8],
cursor_destination: &'cursor mut [u8],
limits: PaginationLimits,
) -> Result<HeaderCursorPage<'response, 'cursor, 'endpoint, '_, '_, '_>, HeaderCursorExecutionError<T::Error>>where
T: BlockingAuthenticatedTransport + BoundTransport,
Executes the initial blocking request and decodes only its own response.
Trait Implementations§
Source§impl<'request, 'policy> Clone for HeaderCursorSession<'request, 'policy>
impl<'request, 'policy> Clone for HeaderCursorSession<'request, 'policy>
Source§fn clone(&self) -> HeaderCursorSession<'request, 'policy>
fn clone(&self) -> HeaderCursorSession<'request, 'policy>
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 moreimpl<'request, 'policy> Copy for HeaderCursorSession<'request, 'policy>
Auto Trait Implementations§
impl<'request, 'policy> Freeze for HeaderCursorSession<'request, 'policy>
impl<'request, 'policy> RefUnwindSafe for HeaderCursorSession<'request, 'policy>
impl<'request, 'policy> Send for HeaderCursorSession<'request, 'policy>
impl<'request, 'policy> Sync for HeaderCursorSession<'request, 'policy>
impl<'request, 'policy> Unpin for HeaderCursorSession<'request, 'policy>
impl<'request, 'policy> UnsafeUnpin for HeaderCursorSession<'request, 'policy>
impl<'request, 'policy> UnwindSafe for HeaderCursorSession<'request, 'policy>
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