MountainEnvironment

Struct MountainEnvironment 

Source
pub struct MountainEnvironment {
    pub ApplicationHandle: AppHandle<Wry>,
    pub ApplicationState: Arc<ApplicationState>,
}
Expand description

The concrete Environment for the Mountain application.

Fields§

§ApplicationHandle: AppHandle<Wry>§ApplicationState: Arc<ApplicationState>

Implementations§

Source§

impl MountainEnvironment

Source

pub fn Create(ApplicationHandle: AppHandle<Wry>) -> Self

Creates a new MountainEnvironment instance.

Trait Implementations§

Source§

impl Clone for MountainEnvironment

Source§

fn clone(&self) -> MountainEnvironment

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl CommandExecutor for MountainEnvironment

Source§

fn ExecuteCommand<'life0, 'async_trait>( &'life0 self, CommandIdentifier: String, Argument: Value, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Executes a registered command by dispatching it to the appropriate handler.

Source§

fn RegisterCommand<'life0, 'async_trait>( &'life0 self, SideCarIdentifier: String, CommandIdentifier: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Registers a command contributed by a sidecar process.

Source§

fn UnregisterCommand<'life0, 'async_trait>( &'life0 self, _SideCarIdentifier: String, CommandIdentifier: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Unregisters a previously registered command.

Source§

fn GetAllCommands<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets a list of all currently registered command IDs.

Source§

impl ConfigurationInspector for MountainEnvironment

Source§

fn InspectConfigurationValue<'life0, 'async_trait>( &'life0 self, Key: String, _Overrides: ConfigurationOverridesDTO, ) -> Pin<Box<dyn Future<Output = Result<Option<InspectResultDataDTO>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Inspects a configuration key to get its value from all relevant scopes.

Source§

impl ConfigurationProvider for MountainEnvironment

Source§

fn GetConfigurationValue<'life0, 'async_trait>( &'life0 self, Section: Option<String>, _Overrides: ConfigurationOverridesDTO, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves a configuration value from the cached, merged configuration.

Source§

fn UpdateConfigurationValue<'life0, 'async_trait>( &'life0 self, Key: String, ValueToSet: Value, Target: ConfigurationTarget, _Overrides: ConfigurationOverridesDTO, _ScopeToLanguage: Option<bool>, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates a configuration value in the appropriate settings.json file.

Source§

impl CustomEditorProvider for MountainEnvironment

Source§

fn RegisterCustomEditorProvider<'life0, 'async_trait>( &'life0 self, _ViewType: String, _OptionsValue: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Registers a new custom editor provider from an extension. Read more
Source§

fn UnregisterCustomEditorProvider<'life0, 'async_trait>( &'life0 self, _ViewType: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Unregisters a previously registered custom editor provider. Read more
Source§

fn OnSaveCustomDocument<'life0, 'async_trait>( &'life0 self, _ViewType: String, _ResourceURI: Url, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

A notification sent from the extension host (Cocoon) to the main host (Mountain) when a custom document is saved by the user in the UI. Read more
Source§

fn ResolveCustomEditor<'life0, 'async_trait>( &'life0 self, ViewType: String, ResourceURI: Url, WebViewPanelHandle: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

A request sent from the main host (Mountain) to the extension host (Cocoon) to resolve the content for a custom editor. Read more
Source§

impl DebugService for MountainEnvironment

Source§

fn RegisterDebugConfigurationProvider<'life0, 'async_trait>( &'life0 self, DebugType: String, _ProviderHandle: u32, _SideCarIdentifier: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Registers a provider for resolving debug configurations from an extension. Read more
Source§

fn RegisterDebugAdapterDescriptorFactory<'life0, 'async_trait>( &'life0 self, DebugType: String, _FactoryHandle: u32, _SideCarIdentifier: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Registers a factory for creating debug adapter descriptors from an extension. Read more
Source§

fn StartDebugging<'life0, 'async_trait>( &'life0 self, _FolderURI: Option<Url>, Configuration: Value, ) -> Pin<Box<dyn Future<Output = Result<String, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Starts a new debugging session based on a launch configuration. Read more
Source§

fn SendCommand<'life0, 'async_trait>( &'life0 self, SessionID: String, Command: String, Arguments: Value, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sends a command to a running debug session. This corresponds to the Debug Adapter Protocol (DAP). Read more
Source§

impl DiagnosticManager for MountainEnvironment

Source§

fn SetDiagnostics<'life0, 'async_trait>( &'life0 self, Owner: String, EntriesDTOValue: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sets or updates diagnostics for multiple resources from a specific owner.

Source§

fn ClearDiagnostics<'life0, 'async_trait>( &'life0 self, Owner: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Clears all diagnostics from a specific owner.

Source§

fn GetAllDiagnostics<'life0, 'async_trait>( &'life0 self, ResourceURIFilterOption: Option<Value>, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves all diagnostics, optionally filtered by a resource URI.

Source§

impl DocumentProvider for MountainEnvironment

Source§

fn OpenDocument<'life0, 'async_trait>( &'life0 self, URIComponentsDTO: Value, LanguageIdentifier: Option<String>, Content: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<Url, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Opens a document. If the URI scheme is not native (file), it attempts to resolve the content from a registered sidecar provider (TextDocumentContentProvider).

Source§

fn SaveDocument<'life0, 'async_trait>( &'life0 self, URI: Url, ) -> Pin<Box<dyn Future<Output = Result<bool, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Saves the document at the given URI.

Source§

fn SaveDocumentAs<'life0, 'async_trait>( &'life0 self, OriginalURI: Url, NewTargetURI: Option<Url>, ) -> Pin<Box<dyn Future<Output = Result<Option<Url>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Saves a document to a new location.

Source§

fn SaveAllDocuments<'life0, 'async_trait>( &'life0 self, _IncludeUntitled: bool, ) -> Pin<Box<dyn Future<Output = Result<Vec<bool>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Saves all currently dirty documents.

Source§

fn ApplyDocumentChanges<'life0, 'async_trait>( &'life0 self, URI: Url, NewVersionIdentifier: i64, ChangesDTOCollection: Value, _IsDirtyAfterChange: bool, _IsUndoing: bool, _IsRedoing: bool, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Applies a collection of content changes to a document.

Source§

impl ExtensionManagementService for MountainEnvironment

Source§

fn ScanForExtensions<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Scans the predefined extension directories, parses the package.json for each found extension, and populates the internal state with the results. Read more
Source§

fn GetExtensions<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Value>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves the metadata for all successfully scanned extensions. Read more
Source§

fn GetExtension<'life0, 'async_trait>( &'life0 self, _id: String, ) -> Pin<Box<dyn Future<Output = Result<Option<Value>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves the metadata for a single extension, identified by its ID (e.g., “vscode.typescript-language-features”). Read more
Source§

impl FileSystemReader for MountainEnvironment

Source§

fn ReadFile<'life0, 'life1, 'async_trait>( &'life0 self, Path: &'life1 PathBuf, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Reads the entire contents of a file into a byte vector after verifying access rights.

Source§

fn StatFile<'life0, 'life1, 'async_trait>( &'life0 self, Path: &'life1 PathBuf, ) -> Pin<Box<dyn Future<Output = Result<FileSystemStatDTO, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Retrieves metadata for a file or directory after verifying access rights.

Source§

fn ReadDirectory<'life0, 'life1, 'async_trait>( &'life0 self, Path: &'life1 PathBuf, ) -> Pin<Box<dyn Future<Output = Result<Vec<(String, FileTypeDTO)>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Reads the contents of a directory after verifying access rights.

Source§

impl FileSystemWriter for MountainEnvironment

Source§

fn WriteFile<'life0, 'life1, 'async_trait>( &'life0 self, Path: &'life1 PathBuf, Content: Vec<u8>, Create: bool, Overwrite: bool, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Writes content to a file after verifying access rights and options.

Source§

fn CreateDirectory<'life0, 'life1, 'async_trait>( &'life0 self, Path: &'life1 PathBuf, Recursive: bool, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Creates a directory after verifying access rights.

Source§

fn Delete<'life0, 'life1, 'async_trait>( &'life0 self, Path: &'life1 PathBuf, Recursive: bool, _UseTrash: bool, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Deletes a file or directory after verifying access rights.

Source§

fn Rename<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, Source: &'life1 PathBuf, Target: &'life2 PathBuf, Overwrite: bool, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Renames (moves) a file or directory after verifying access rights.

Source§

fn Copy<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, Source: &'life1 PathBuf, Target: &'life2 PathBuf, Overwrite: bool, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Copies a file after verifying access rights.

Source§

fn CreateFile<'life0, 'life1, 'async_trait>( &'life0 self, Path: &'life1 PathBuf, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Creates a new, empty file after verifying access rights.

Source§

impl IPCProvider for MountainEnvironment

Source§

fn SendNotificationToSideCar<'life0, 'async_trait>( &'life0 self, SideCarIdentifier: String, Method: String, Parameters: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sends a fire-and-forget notification to a specified sidecar.

Source§

fn SendRequestToSideCar<'life0, 'async_trait>( &'life0 self, SideCarIdentifier: String, Method: String, Parameters: Value, TimeoutMilliseconds: u64, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sends a request to a specified sidecar and awaits a response.

Source§

impl KeybindingProvider for MountainEnvironment

Source§

fn GetResolvedKeybinding<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Resolves and retrieves the complete list of active keybinding rules. Read more
Source§

impl LanguageFeatureProviderRegistry for MountainEnvironment

Source§

fn RegisterProvider<'life0, 'async_trait>( &'life0 self, SideCarIdentifier: String, ProviderType: ProviderType, SelectorDTO: Value, ExtensionIdentifierDTO: Value, OptionsDTO: Option<Value>, ) -> Pin<Box<dyn Future<Output = Result<u32, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Registers a new language feature provider. Read more
Source§

fn UnregisterProvider<'life0, 'async_trait>( &'life0 self, Handle: u32, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Unregisters a previously registered provider. Read more
Source§

fn ProvideHover<'life0, 'async_trait>( &'life0 self, DocumentURI: Url, PositionDTO: PositionDTO, ) -> Pin<Box<dyn Future<Output = Result<Option<HoverResultDTO>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ProvideCompletions<'life0, 'async_trait>( &'life0 self, DocumentURI: Url, PositionDTO: PositionDTO, ContextDTO: CompletionContextDTO, CancellationTokenValue: Option<Value>, ) -> Pin<Box<dyn Future<Output = Result<Option<CompletionListDTO>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ProvideDefinition<'life0, 'async_trait>( &'life0 self, DocumentURI: Url, PositionDTO: PositionDTO, ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<LocationDTO>>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ProvideReferences<'life0, 'async_trait>( &'life0 self, DocumentURI: Url, PositionDTO: PositionDTO, ContextDTO: Value, ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<LocationDTO>>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ProvideDocumentFormattingEdits<'life0, 'async_trait>( &'life0 self, DocumentURI: Url, OptionsDTO: Value, ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<TextEditDTO>>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ProvideDocumentRangeFormattingEdits<'life0, 'async_trait>( &'life0 self, DocumentURI: Url, RangeDTO: Value, OptionsDTO: Value, ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<TextEditDTO>>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ProvideCodeActions<'life0, 'async_trait>( &'life0 self, _DocumentURI: Url, _RangeOrSelectionDTO: Value, _ContextDTO: Value, ) -> Pin<Box<dyn Future<Output = Result<Option<Value>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ProvideCodeLenses<'life0, 'async_trait>( &'life0 self, _DocumentURI: Url, ) -> Pin<Box<dyn Future<Output = Result<Option<Value>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ProvideDocumentHighlights<'life0, 'async_trait>( &'life0 self, _DocumentURI: Url, _PositionDTO: PositionDTO, ) -> Pin<Box<dyn Future<Output = Result<Option<Value>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn PrepareRename<'life0, 'async_trait>( &'life0 self, _DocumentURI: Url, _PositionDTO: PositionDTO, ) -> Pin<Box<dyn Future<Output = Result<Option<Value>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl OutputChannelManager for MountainEnvironment

Source§

fn RegisterChannel<'life0, 'async_trait>( &'life0 self, Name: String, LanguageIdentifier: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<String, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Registers a new output channel.

Source§

fn Append<'life0, 'async_trait>( &'life0 self, ChannelIdentifier: String, Value: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Appends text to an output channel.

Source§

fn Replace<'life0, 'async_trait>( &'life0 self, ChannelIdentifier: String, Value: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Replaces the entire content of an output channel.

Source§

fn Clear<'life0, 'async_trait>( &'life0 self, ChannelIdentifier: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Clears all content from an output channel.

Source§

fn Reveal<'life0, 'async_trait>( &'life0 self, ChannelIdentifier: String, PreserveFocus: bool, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Reveals an output channel in the UI.

Source§

fn Close<'life0, 'async_trait>( &'life0 self, _ChannelIdentifier: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Closes the view of an output channel in the UI.

Source§

fn Dispose<'life0, 'async_trait>( &'life0 self, ChannelIdentifier: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Disposes of an output channel permanently.

Source§

impl Requires<dyn CommandExecutor> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn CommandExecutor>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn ConfigurationInspector> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn ConfigurationInspector>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn ConfigurationProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn ConfigurationProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn CustomEditorProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn CustomEditorProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn DebugService> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn DebugService>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn DiagnosticManager> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn DiagnosticManager>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn DocumentProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn DocumentProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn ExtensionManagementService> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn ExtensionManagementService>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn FileSystemReader> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn FileSystemReader>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn FileSystemWriter> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn FileSystemWriter>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn IPCProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn IPCProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn KeybindingProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn KeybindingProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn LanguageFeatureProviderRegistry> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn LanguageFeatureProviderRegistry>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn OutputChannelManager> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn OutputChannelManager>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn SearchProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn SearchProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn SecretProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn SecretProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn SourceControlManagementProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn SourceControlManagementProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn StatusBarProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn StatusBarProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn StorageProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn StorageProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn SynchronizationProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn SynchronizationProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn TerminalProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn TerminalProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn TestController> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn TestController>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn TreeViewProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn TreeViewProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn UserInterfaceProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn UserInterfaceProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn WebViewProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn WebViewProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn WorkSpaceEditApplier> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn WorkSpaceEditApplier>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn WorkSpaceProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn WorkSpaceProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl SearchProvider for MountainEnvironment

Source§

fn TextSearch<'life0, 'async_trait>( &'life0 self, QueryValue: Value, _OptionsValue: Value, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Performs a text search across all workspace folders. Read more
Source§

impl SecretProvider for MountainEnvironment

Source§

fn GetSecret<'life0, 'async_trait>( &'life0 self, ExtensionIdentifier: String, Key: String, ) -> Pin<Box<dyn Future<Output = Result<Option<String>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves a secret by reading from the OS keychain.

Source§

fn StoreSecret<'life0, 'async_trait>( &'life0 self, ExtensionIdentifier: String, Key: String, Value: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Stores a secret by writing to the OS keychain.

Source§

fn DeleteSecret<'life0, 'async_trait>( &'life0 self, ExtensionIdentifier: String, Key: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes a secret by removing it from the OS keychain.

Source§

impl SourceControlManagementProvider for MountainEnvironment

Source§

fn CreateSourceControl<'life0, 'async_trait>( &'life0 self, ProviderDataValue: Value, ) -> Pin<Box<dyn Future<Output = Result<u32, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a new SourceControlManagement provider in the host. Read more
Source§

fn DisposeSourceControl<'life0, 'async_trait>( &'life0 self, ProviderHandle: u32, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Disposes of an SourceControlManagement provider, removing it and its groups from the UI. Read more
Source§

fn UpdateSourceControl<'life0, 'async_trait>( &'life0 self, ProviderHandle: u32, UpdateDataValue: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates the core properties of an SourceControlManagement provider. Read more
Source§

fn UpdateSourceControlGroup<'life0, 'async_trait>( &'life0 self, ProviderHandle: u32, GroupDataValue: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates the properties of an SourceControlManagement resource group (e.g., “Changes”). Read more
Source§

fn RegisterInputBox<'life0, 'async_trait>( &'life0 self, ProviderHandle: u32, InputBoxDataValue: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Registers or updates the SourceControlManagement input box for a provider. Read more
Source§

impl StatusBarProvider for MountainEnvironment

Source§

fn SetStatusBarEntry<'life0, 'async_trait>( &'life0 self, Entry: StatusBarEntryDTO, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a new status bar entry or updates an existing one.

Source§

fn DisposeStatusBarEntry<'life0, 'async_trait>( &'life0 self, EntryIdentifier: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Removes a status bar item from the UI.

Source§

fn SetStatusBarMessage<'life0, 'async_trait>( &'life0 self, MessageIdentifier: String, Text: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Shows a temporary message in the status bar.

Source§

fn DisposeStatusBarMessage<'life0, 'async_trait>( &'life0 self, MessageIdentifier: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Disposes of a temporary status bar message.

Source§

fn ProvideTooltip<'life0, 'async_trait>( &'life0 self, EntryIdentifier: String, ) -> Pin<Box<dyn Future<Output = Result<Option<Value>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Resolves a dynamic tooltip by making a reverse call to the extension host.

Source§

impl StorageProvider for MountainEnvironment

Source§

fn GetStorageValue<'life0, 'life1, 'async_trait>( &'life0 self, IsGlobalScope: bool, Key: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<Value>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Retrieves a value from either global or workspace storage.

Source§

fn UpdateStorageValue<'life0, 'async_trait>( &'life0 self, IsGlobalScope: bool, Key: String, ValueToSet: Option<Value>, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates or deletes a value in either global or workspace storage.

Source§

fn GetAllStorage<'life0, 'async_trait>( &'life0 self, IsGlobalScope: bool, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves the entire storage map for a given scope.

Source§

fn SetAllStorage<'life0, 'async_trait>( &'life0 self, IsGlobalScope: bool, FullState: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Overwrites the entire storage map for a given scope and persists it.

Source§

impl SynchronizationProvider for MountainEnvironment

Source§

fn PushUserData<'life0, 'async_trait>( &'life0 self, _UserData: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Pushes the current local user data state to the remote sync service. Read more
Source§

fn PullUserData<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Pulls the latest user data state from the remote sync service. Read more
Source§

impl TerminalProvider for MountainEnvironment

Source§

fn CreateTerminal<'life0, 'async_trait>( &'life0 self, OptionsValue: Value, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a new terminal instance, spawns a PTY, and manages its I/O.

Source§

fn SendTextToTerminal<'life0, 'async_trait>( &'life0 self, TerminalId: u64, Text: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sends a string of text as input to a specific terminal instance’s underlying pseudo-terminal process. Read more
Source§

fn DisposeTerminal<'life0, 'async_trait>( &'life0 self, TerminalId: u64, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Disposes of a specific terminal instance. This involves terminating the underlying shell process and cleaning up any associated resources. Read more
Source§

fn ShowTerminal<'life0, 'async_trait>( &'life0 self, TerminalId: u64, PreserveFocus: bool, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Shows a terminal in the UI, optionally giving it focus. Read more
Source§

fn HideTerminal<'life0, 'async_trait>( &'life0 self, TerminalId: u64, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Hides the terminal panel if the specified terminal is active. Read more
Source§

fn GetTerminalProcessId<'life0, 'async_trait>( &'life0 self, TerminalId: u64, ) -> Pin<Box<dyn Future<Output = Result<Option<u32>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets the process ID (PID) of the underlying shell process for a terminal. Read more
Source§

impl TestController for MountainEnvironment

Source§

fn RegisterTestController<'life0, 'async_trait>( &'life0 self, ControllerId: String, Label: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Registers a new test controller from a sidecar (extension host). Read more
Source§

fn RunTests<'life0, 'async_trait>( &'life0 self, ControllerId: String, TestRunRequest: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Runs a set of tests. Read more
Source§

impl TreeViewProvider for MountainEnvironment

Source§

fn RegisterTreeDataProvider<'life0, 'async_trait>( &'life0 self, ViewIdentifier: String, Options: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Registers a new tree data provider from an extension (e.g., Cocoon).

Source§

fn UnregisterTreeDataProvider<'life0, 'async_trait>( &'life0 self, ViewIdentifier: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Unregisters a tree data provider.

Source§

fn RevealTreeItem<'life0, 'async_trait>( &'life0 self, ViewIdentifier: String, ItemHandle: String, Options: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Reveals a specific item in the tree view by notifying the UI.

Source§

fn RefreshTreeView<'life0, 'async_trait>( &'life0 self, ViewIdentifier: String, ItemsToRefresh: Option<Value>, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Refreshes the tree view by notifying the UI.

Source§

fn GetChildren<'life0, 'async_trait>( &'life0 self, ViewIdentifier: String, ElementHandle: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<Vec<Value>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets the children for a given element. This method acts as a dispatcher.

Source§

fn GetTreeItem<'life0, 'async_trait>( &'life0 self, ViewIdentifier: String, ElementHandle: String, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets the TreeItem for a given element. This method acts as a dispatcher.

Source§

fn SetTreeViewMessage<'life0, 'async_trait>( &'life0 self, _ViewIdentifier: String, _Message: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sets a message to be displayed in the tree view’s empty state. Read more
Source§

fn SetTreeViewTitle<'life0, 'async_trait>( &'life0 self, _ViewIdentifier: String, _Title: Option<String>, _Description: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sets the title and description of the tree view container. Read more
Source§

fn SetTreeViewBadge<'life0, 'async_trait>( &'life0 self, _ViewIdentifier: String, _Badge: Option<Value>, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sets a badge (e.g., a number) on the tree view’s container icon. Read more
Source§

impl UserInterfaceProvider for MountainEnvironment

Source§

fn ShowMessage<'life0, 'async_trait>( &'life0 self, Severity: MessageSeverity, Message: String, Options: Option<Value>, ) -> Pin<Box<dyn Future<Output = Result<Option<String>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Shows a message to the user with a given severity and optional action buttons.

Source§

fn ShowOpenDialog<'life0, 'async_trait>( &'life0 self, Options: Option<OpenDialogOptionsDTO>, ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<PathBuf>>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Shows a dialog for opening files or folders using the tauri-plugin-dialog.

Source§

fn ShowSaveDialog<'life0, 'async_trait>( &'life0 self, Options: Option<SaveDialogOptionsDTO>, ) -> Pin<Box<dyn Future<Output = Result<Option<PathBuf>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Shows a dialog for saving a file using the tauri-plugin-dialog.

Source§

fn ShowQuickPick<'life0, 'async_trait>( &'life0 self, Items: Vec<QuickPickItemDTO>, Options: Option<QuickPickOptionsDTO>, ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<String>>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Shows a quick pick list to the user.

Source§

fn ShowInputBox<'life0, 'async_trait>( &'life0 self, Options: Option<InputBoxOptionsDTO>, ) -> Pin<Box<dyn Future<Output = Result<Option<String>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Shows an input box to solicit a string input from the user.

Source§

impl WebViewProvider for MountainEnvironment

Source§

fn CreateWebViewPanel<'life0, 'async_trait>( &'life0 self, ExtensionDataValue: Value, ViewType: String, Title: String, _ShowOptionsValue: Value, PanelOptionsValue: Value, ContentOptionsValue: Value, ) -> Pin<Box<dyn Future<Output = Result<String, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a new WebView panel. Read more
Source§

fn DisposeWebViewPanel<'life0, 'async_trait>( &'life0 self, Handle: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Disposes of a WebView panel, removing it from the UI. Read more
Source§

fn RevealWebViewPanel<'life0, 'async_trait>( &'life0 self, Handle: String, _ShowOptionsValue: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Reveals an existing WebView panel, bringing it to the front. Read more
Source§

fn SetWebViewOptions<'life0, 'async_trait>( &'life0 self, Handle: String, OptionsValue: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sets various options for a WebView panel, such as its title and icon path. Read more
Source§

fn SetWebViewHTML<'life0, 'async_trait>( &'life0 self, Handle: String, HTML: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sets the HTML content of a WebView panel. Read more
Source§

fn PostMessageToWebView<'life0, 'async_trait>( &'life0 self, Handle: String, Message: Value, ) -> Pin<Box<dyn Future<Output = Result<bool, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Posts a message from the extension host to the WebView content script. Read more
Source§

impl WorkSpaceEditApplier for MountainEnvironment

Source§

fn ApplyWorkSpaceEdit<'life0, 'async_trait>( &'life0 self, EditDTO: WorkSpaceEditDTO, ) -> Pin<Box<dyn Future<Output = Result<bool, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Applies the given WorkSpaceEditDTO to the workspace. Read more
Source§

impl WorkSpaceProvider for MountainEnvironment

Source§

fn GetWorkSpaceFoldersInfo<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<(Url, String, usize)>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves information about all currently open workspace folders.

Source§

fn GetWorkSpaceFolderInfo<'life0, 'async_trait>( &'life0 self, URIToMatch: Url, ) -> Pin<Box<dyn Future<Output = Result<Option<(Url, String, usize)>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves information for the specific workspace folder that contains a given URI.

Source§

fn GetWorkSpaceName<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Option<String>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets the name of the current workspace.

Source§

fn GetWorkSpaceConfigurationPath<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Option<PathBuf>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets the path to the workspace configuration file (.code-workspace).

Source§

fn IsWorkSpaceTrusted<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<bool, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Checks if the current workspace is trusted.

Source§

fn RequestWorkSpaceTrust<'life0, 'async_trait>( &'life0 self, _Options: Option<Value>, ) -> Pin<Box<dyn Future<Output = Result<bool, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Requests workspace trust from the user.

Source§

fn FindFilesInWorkSpace<'life0, 'async_trait>( &'life0 self, IncludePatternDTO: Value, ExcludePatternDTO: Option<Value>, MaxResults: Option<usize>, UseIgnoreFiles: bool, FollowSymlinks: bool, ) -> Pin<Box<dyn Future<Output = Result<Vec<Url>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Finds files within the workspace using glob patterns.

Source§

fn OpenFile<'life0, 'async_trait>( &'life0 self, Path: PathBuf, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Requests that the host application open the specified file path in an editor.

Source§

impl Environment for MountainEnvironment

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoRequest<T> for T

§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<L> LayerExt<L> for L

§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in [Layered].
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,