pub trait WorkspaceSession: Send + Sync {
// Required methods
fn describe<'life0, 'life1, 'async_trait>(
&'life0 self,
operation: &'life1 OperationContext,
) -> Pin<Box<dyn Future<Output = Result<String, PortFailure>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn read<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
operation: &'life1 OperationContext,
path: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, PortFailure>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn write<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
operation: &'life1 OperationContext,
path: &'life2 str,
content: &'life3 [u8],
) -> Pin<Box<dyn Future<Output = Result<(), PortFailure>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn list<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
operation: &'life1 OperationContext,
path: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<WorkspaceEntry>, PortFailure>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn search<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
operation: &'life1 OperationContext,
path: &'life2 str,
query: &'life3 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, PortFailure>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
operation: &'life1 OperationContext,
request: CommandRequest,
) -> Pin<Box<dyn Future<Output = Result<CommandOutput, PortFailure>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Required Methods§
fn describe<'life0, 'life1, 'async_trait>(
&'life0 self,
operation: &'life1 OperationContext,
) -> Pin<Box<dyn Future<Output = Result<String, PortFailure>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
operation: &'life1 OperationContext,
path: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, PortFailure>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn write<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
operation: &'life1 OperationContext,
path: &'life2 str,
content: &'life3 [u8],
) -> Pin<Box<dyn Future<Output = Result<(), PortFailure>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn list<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
operation: &'life1 OperationContext,
path: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<WorkspaceEntry>, PortFailure>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn search<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
operation: &'life1 OperationContext,
path: &'life2 str,
query: &'life3 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, PortFailure>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
operation: &'life1 OperationContext,
request: CommandRequest,
) -> Pin<Box<dyn Future<Output = Result<CommandOutput, PortFailure>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".