pub struct TransRequestor { /* private fields */ }
Implementations§
Source§impl TransRequestor
impl TransRequestor
pub fn new( dec_id: Option<SharedObjectStackDecID>, requestor: HttpRequestorRef, ) -> Self
pub fn clone_processor(&self) -> TransOutputProcessorRef
pub async fn get_context( &self, req: TransGetContextOutputRequest, ) -> BuckyResult<TransGetContextOutputResponse>
pub async fn put_context( &self, req: TransPutContextOutputRequest, ) -> BuckyResult<()>
pub async fn create_task( &self, req: TransCreateTaskOutputRequest, ) -> BuckyResult<TransCreateTaskOutputResponse>
pub async fn control_task( &self, req: TransControlTaskOutputRequest, ) -> BuckyResult<()>
pub async fn start_task(&self, req: TransTaskOutputRequest) -> BuckyResult<()>
pub async fn stop_task(&self, req: TransTaskOutputRequest) -> BuckyResult<()>
pub async fn delete_task(&self, req: TransTaskOutputRequest) -> BuckyResult<()>
pub async fn get_task_state( &self, req: TransGetTaskStateOutputRequest, ) -> BuckyResult<TransGetTaskStateOutputResponse>
pub async fn query_tasks( &self, req: TransQueryTasksOutputRequest, ) -> BuckyResult<TransQueryTasksOutputResponse>
pub async fn publish_file( &self, req: TransPublishFileOutputRequest, ) -> BuckyResult<TransPublishFileOutputResponse>
pub async fn get_task_group_state( &self, req: TransGetTaskGroupStateOutputRequest, ) -> BuckyResult<TransGetTaskGroupStateOutputResponse>
pub async fn control_task_group( &self, req: TransControlTaskGroupOutputRequest, ) -> BuckyResult<TransControlTaskGroupOutputResponse>
Trait Implementations§
Source§impl Clone for TransRequestor
impl Clone for TransRequestor
Source§fn clone(&self) -> TransRequestor
fn clone(&self) -> TransRequestor
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 moreSource§impl TransOutputProcessor for TransRequestor
impl TransOutputProcessor for TransRequestor
fn get_context<'life0, 'async_trait>(
&'life0 self,
req: TransGetContextOutputRequest,
) -> Pin<Box<dyn Future<Output = BuckyResult<TransGetContextOutputResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn put_context<'life0, 'async_trait>(
&'life0 self,
req: TransPutContextOutputRequest,
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_task<'life0, 'async_trait>(
&'life0 self,
req: TransCreateTaskOutputRequest,
) -> Pin<Box<dyn Future<Output = BuckyResult<TransCreateTaskOutputResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn query_tasks<'life0, 'async_trait>(
&'life0 self,
req: TransQueryTasksOutputRequest,
) -> Pin<Box<dyn Future<Output = BuckyResult<TransQueryTasksOutputResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_task_state<'life0, 'async_trait>(
&'life0 self,
req: TransGetTaskStateOutputRequest,
) -> Pin<Box<dyn Future<Output = BuckyResult<TransGetTaskStateOutputResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn publish_file<'life0, 'async_trait>(
&'life0 self,
req: TransPublishFileOutputRequest,
) -> Pin<Box<dyn Future<Output = BuckyResult<TransPublishFileOutputResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn control_task<'life0, 'async_trait>(
&'life0 self,
req: TransControlTaskOutputRequest,
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_task_group_state<'life0, 'async_trait>(
&'life0 self,
req: TransGetTaskGroupStateOutputRequest,
) -> Pin<Box<dyn Future<Output = BuckyResult<TransGetTaskGroupStateOutputResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn control_task_group<'life0, 'async_trait>(
&'life0 self,
req: TransControlTaskGroupOutputRequest,
) -> Pin<Box<dyn Future<Output = BuckyResult<TransControlTaskGroupOutputResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for TransRequestor
impl !RefUnwindSafe for TransRequestor
impl Send for TransRequestor
impl Sync for TransRequestor
impl Unpin for TransRequestor
impl !UnwindSafe for TransRequestor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more