pub struct FetchFirstTask { /* private fields */ }
Expand description
Same as FetchTask
, except that it only collects message data
items for the first message matching the given id.
Implementations§
Source§impl FetchFirstTask
impl FetchFirstTask
pub fn new(id: NonZeroU32, items: MacroOrMessageDataItemNames<'static>) -> Self
pub fn set_uid(&mut self, uid: bool)
pub fn with_uid(self, uid: bool) -> Self
Trait Implementations§
Source§impl Clone for FetchFirstTask
impl Clone for FetchFirstTask
Source§fn clone(&self) -> FetchFirstTask
fn clone(&self) -> FetchFirstTask
Returns a duplicate 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 moreSource§impl Debug for FetchFirstTask
impl Debug for FetchFirstTask
Source§impl Task for FetchFirstTask
impl Task for FetchFirstTask
Source§type Output = Result<VecN<MessageDataItem<'static>, 1>, TaskError>
type Output = Result<VecN<MessageDataItem<'static>, 1>, TaskError>
Output of the task. Read more
Source§fn command_body(&self) -> CommandBody<'static>
fn command_body(&self) -> CommandBody<'static>
Returns the
CommandBody
to issue for this task. Read moreSource§fn process_data(&mut self, data: Data<'static>) -> Option<Data<'static>>
fn process_data(&mut self, data: Data<'static>) -> Option<Data<'static>>
Process data response.
Source§fn process_tagged(self, status_body: StatusBody<'static>) -> Self::Output
fn process_tagged(self, status_body: StatusBody<'static>) -> Self::Output
Process command completion result response. Read more
Source§fn process_untagged(
&mut self,
status_body: StatusBody<'static>,
) -> Option<StatusBody<'static>>
fn process_untagged( &mut self, status_body: StatusBody<'static>, ) -> Option<StatusBody<'static>>
Process untagged response.
Source§fn process_continuation_request(
&mut self,
continuation: CommandContinuationRequest<'static>,
) -> Option<CommandContinuationRequest<'static>>
fn process_continuation_request( &mut self, continuation: CommandContinuationRequest<'static>, ) -> Option<CommandContinuationRequest<'static>>
Process command continuation request response.
Source§fn process_continuation_request_authenticate(
&mut self,
continuation: CommandContinuationRequest<'static>,
) -> Result<AuthenticateData<'static>, CommandContinuationRequest<'static>>
fn process_continuation_request_authenticate( &mut self, continuation: CommandContinuationRequest<'static>, ) -> Result<AuthenticateData<'static>, CommandContinuationRequest<'static>>
Process command continuation request response (during authenticate).
Auto Trait Implementations§
impl Freeze for FetchFirstTask
impl RefUnwindSafe for FetchFirstTask
impl Send for FetchFirstTask
impl Sync for FetchFirstTask
impl Unpin for FetchFirstTask
impl UnwindSafe for FetchFirstTask
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