Struct ora_api::client::TaskOutput  
source · pub struct TaskOutput { /* private fields */ }Expand description
Output of a task.
Implementations§
source§impl TaskOutput
 
impl TaskOutput
sourcepub fn get<T: DeserializeOwned>(&self) -> Result<T>
 
pub fn get<T: DeserializeOwned>(&self) -> Result<T>
sourcepub fn into_bytes(self) -> Vec<u8>
 
pub fn into_bytes(self) -> Vec<u8>
Convert into the raw output bytes.
sourcepub fn format(&self) -> TaskDataFormat
 
pub fn format(&self) -> TaskDataFormat
Return the task’s output format.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TaskOutput
impl Send for TaskOutput
impl Sync for TaskOutput
impl Unpin for TaskOutput
impl UnwindSafe for TaskOutput
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<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
source§impl<W> IntoHandler for Wwhere
    W: Send + Sync + 'static,
 
impl<W> IntoHandler for Wwhere W: Send + Sync + 'static,
source§fn handler<T>(self) -> Arc<dyn RawHandler + Send + Sync>where
    Self: Handler<T>,
    T: Task,
 
fn handler<T>(self) -> Arc<dyn RawHandler + Send + Sync>where Self: Handler<T>, T: Task,
Convert 
self into a RawHandler that can be registered
in workers.source§fn handler_with_selector<T>(
    self,
    selector: WorkerSelector
) -> Arc<dyn RawHandler + Send + Sync>where
    Self: Handler<T>,
    T: Task,
 
fn handler_with_selector<T>( self, selector: WorkerSelector ) -> Arc<dyn RawHandler + Send + Sync>where Self: Handler<T>, T: Task,
Convert 
self into a RawHandler that can be registered
in workers with the given selector.