Struct cyfs_lib::TransRequestor
source · pub struct TransRequestor { /* private fields */ }
Implementations
sourceimpl TransRequestor
impl TransRequestor
pub fn new_tcp(
dec_id: Option<SharedObjectStackDecID>,
service_addr: &str
) -> Self
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<TransContext>
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<TransTaskState>
pub async fn query_tasks(
&self,
req: &TransQueryTasksOutputRequest
) -> BuckyResult<TransQueryTasksOutputResponse>
pub async fn publish_file(
&self,
req: &TransPublishFileOutputRequest
) -> BuckyResult<TransPublishFileOutputResponse>
Trait Implementations
sourceimpl Clone for TransRequestor
impl Clone for TransRequestor
sourcefn clone(&self) -> TransRequestor
fn clone(&self) -> TransRequestor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl TransOutputProcessor for TransRequestor
impl TransOutputProcessor for TransRequestor
fn get_context<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 TransGetContextOutputRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<TransContext>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn put_context<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 TransPutContextOutputRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn create_task<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 TransCreateTaskOutputRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<TransCreateTaskOutputResponse>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn query_tasks<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 TransQueryTasksOutputRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<TransQueryTasksOutputResponse>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_task_state<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 TransGetTaskStateOutputRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<TransTaskState>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn publish_file<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 TransPublishFileOutputRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<TransPublishFileOutputResponse>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn control_task<'life0, 'async_trait>(
&'life0 self,
req: TransControlTaskOutputRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for TransRequestor
impl Send for TransRequestor
impl Sync for TransRequestor
impl Unpin for TransRequestor
impl !UnwindSafe for TransRequestor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more