Struct cyfs_lib::NDNRequestor
source · pub struct NDNRequestor { /* private fields */ }
Implementations
sourceimpl NDNRequestor
impl NDNRequestor
pub fn new_default_tcp(dec_id: Option<SharedObjectStackDecID>) -> Self
pub fn new_tcp(
dec_id: Option<SharedObjectStackDecID>,
service_addr: &str
) -> Self
pub fn new(
dec_id: Option<SharedObjectStackDecID>,
requestor: HttpRequestorRef
) -> Self
pub fn into_processor(self) -> NDNOutputProcessorRef
pub fn clone_processor(&self) -> NDNOutputProcessorRef
pub async fn put_data(
&self,
req: NDNPutDataOutputRequest
) -> BuckyResult<NDNPutDataOutputResponse>
pub async fn get_data(
&self,
req: NDNGetDataOutputRequest
) -> BuckyResult<NDNGetDataOutputResponse>
pub async fn delete_data(
&self,
req: NDNDeleteDataOutputRequest
) -> BuckyResult<NDNDeleteDataOutputResponse>
Trait Implementations
sourceimpl Clone for NDNRequestor
impl Clone for NDNRequestor
sourcefn clone(&self) -> NDNRequestor
fn clone(&self) -> NDNRequestor
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 NDNOutputProcessor for NDNRequestor
impl NDNOutputProcessor for NDNRequestor
fn put_data<'life0, 'async_trait>(
&'life0 self,
req: NDNPutDataOutputRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<NDNPutDataOutputResponse>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_data<'life0, 'async_trait>(
&'life0 self,
req: NDNGetDataOutputRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<NDNGetDataOutputResponse>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_data<'life0, 'async_trait>(
&'life0 self,
req: NDNDeleteDataOutputRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<NDNDeleteDataOutputResponse>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn query_file<'life0, 'async_trait>(
&'life0 self,
req: NDNQueryFileOutputRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<NDNQueryFileOutputResponse>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for NDNRequestor
impl Send for NDNRequestor
impl Sync for NDNRequestor
impl Unpin for NDNRequestor
impl !UnwindSafe for NDNRequestor
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