Struct cyfs_lib::TransRequestor
source · pub struct TransRequestor { /* private fields */ }
Implementations§
source§impl 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§
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 more