pub struct ModelFsClient { /* private fields */ }Expand description
Scoped client for fs operations (transport-agnostic).
Implementations§
Source§impl ModelFsClient
impl ModelFsClient
Sourcepub async fn call(&self, payload: Vec<u8>) -> Result<Vec<u8>>
pub async fn call(&self, payload: Vec<u8>) -> Result<Vec<u8>>
Send a raw request and return the raw response bytes.
Sourcepub async fn call_streaming(
&self,
payload: Vec<u8>,
ephemeral_pubkey: [u8; 32],
) -> Result<Vec<u8>>
pub async fn call_streaming( &self, payload: Vec<u8>, ephemeral_pubkey: [u8; 32], ) -> Result<Vec<u8>>
Send a streaming request with ephemeral DH pubkey.
Sourcepub fn parse_scoped_response(
bytes: &[u8],
) -> Result<ModelFsClientResponseVariant>
pub fn parse_scoped_response( bytes: &[u8], ) -> Result<ModelFsClientResponseVariant>
Parse a scoped response from raw bytes.
Sourcepub async fn walk(&self, __request: &NpWalk) -> Result<RWalk>
pub async fn walk(&self, __request: &NpWalk) -> Result<RWalk>
Walk path components to get a fid
Scope: query
Sourcepub async fn open(&self, __request: &NpOpen) -> Result<ROpen>
pub async fn open(&self, __request: &NpOpen) -> Result<ROpen>
Open a walked fid for I/O
Scope: query
Sourcepub async fn read(&self, __request: &NpRead) -> Result<RRead>
pub async fn read(&self, __request: &NpRead) -> Result<RRead>
Read from an opened fid
Scope: query
Sourcepub async fn write(&self, __request: &NpWrite) -> Result<RWrite>
pub async fn write(&self, __request: &NpWrite) -> Result<RWrite>
Write to an opened fid
Scope: write
Sourcepub async fn stat(&self, __request: &NpStatReq) -> Result<RStat>
pub async fn stat(&self, __request: &NpStatReq) -> Result<RStat>
Get file metadata
Scope: query
Source§impl ModelFsClient
impl ModelFsClient
Source§impl ModelFsClient
impl ModelFsClient
Trait Implementations§
Source§impl Clone for ModelFsClient
impl Clone for ModelFsClient
Source§fn clone(&self) -> ModelFsClient
fn clone(&self) -> ModelFsClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ModelFsRpc for ModelFsClient
impl ModelFsRpc for ModelFsClient
fn walk<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 NpWalk,
) -> Pin<Box<dyn Future<Output = Result<RWalk>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn open<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 NpOpen,
) -> Pin<Box<dyn Future<Output = Result<ROpen>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 NpRead,
) -> Pin<Box<dyn Future<Output = Result<RRead>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn write<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 NpWrite,
) -> Pin<Box<dyn Future<Output = Result<RWrite>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn clunk<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 NpClunk,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn stat<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 NpStatReq,
) -> Pin<Box<dyn Future<Output = Result<RStat>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 NpCreate,
) -> Pin<Box<dyn Future<Output = Result<ROpen>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn remove<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 NpRemove,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for ModelFsClient
impl !RefUnwindSafe for ModelFsClient
impl Send for ModelFsClient
impl Sync for ModelFsClient
impl Unpin for ModelFsClient
impl UnsafeUnpin for ModelFsClient
impl !UnwindSafe for ModelFsClient
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more