Struct cyfs_lib::GlobalStateAccessorRequestor
source · pub struct GlobalStateAccessorRequestor { /* private fields */ }
Implementations
sourceimpl GlobalStateAccessorRequestor
impl GlobalStateAccessorRequestor
pub fn new_default_tcp(
category: GlobalStateCategory,
dec_id: Option<SharedObjectStackDecID>
) -> Self
pub fn new_tcp(
category: GlobalStateCategory,
dec_id: Option<SharedObjectStackDecID>,
service_addr: &str
) -> Self
pub fn new_root_state(
dec_id: Option<SharedObjectStackDecID>,
requestor: HttpRequestorRef
) -> Self
pub fn new_local_cache(
dec_id: Option<SharedObjectStackDecID>,
requestor: HttpRequestorRef
) -> Self
pub fn new(
category: GlobalStateCategory,
dec_id: Option<SharedObjectStackDecID>,
requestor: HttpRequestorRef
) -> Self
pub fn category(&self) -> &GlobalStateCategory
pub fn into_processor(self) -> GlobalStateAccessorOutputProcessorRef
pub fn clone_processor(&self) -> GlobalStateAccessorOutputProcessorRef
pub async fn decode_get_object_by_path_response(
resp: &mut Response
) -> BuckyResult<RootStateAccessorGetObjectByPathOutputResponse>
pub async fn decode_list_response(
resp: &mut Response
) -> BuckyResult<RootStateAccessorListOutputResponse>
Trait Implementations
sourceimpl Clone for GlobalStateAccessorRequestor
impl Clone for GlobalStateAccessorRequestor
sourcefn clone(&self) -> GlobalStateAccessorRequestor
fn clone(&self) -> GlobalStateAccessorRequestor
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 GlobalStateAccessorOutputProcessor for GlobalStateAccessorRequestor
impl GlobalStateAccessorOutputProcessor for GlobalStateAccessorRequestor
fn get_object_by_path<'life0, 'async_trait>(
&'life0 self,
req: RootStateAccessorGetObjectByPathOutputRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<RootStateAccessorGetObjectByPathOutputResponse>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
req: RootStateAccessorListOutputRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<RootStateAccessorListOutputResponse>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for GlobalStateAccessorRequestor
impl Send for GlobalStateAccessorRequestor
impl Sync for GlobalStateAccessorRequestor
impl Unpin for GlobalStateAccessorRequestor
impl !UnwindSafe for GlobalStateAccessorRequestor
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