pub struct MarkerState {
pub ActiveCustomDocuments: Arc<Mutex<HashMap<String, CustomDocumentStateDTO>>>,
pub ActiveStatusBarItems: Arc<Mutex<HashMap<String, StatusBarEntryDTO>>>,
pub SourceControlManagementProviders: Arc<Mutex<HashMap<u32, SourceControlManagementProviderDTO>>>,
pub SourceControlManagementGroups: Arc<Mutex<HashMap<u32, HashMap<String, SourceControlManagementGroupDTO>>>>,
pub SourceControlManagementResources: Arc<Mutex<HashMap<u32, HashMap<String, Vec<SourceControlManagementResourceDTO>>>>>,
pub NextSourceControlManagementProviderHandle: Arc<AtomicU32>,
}Expand description
Marker-related state containing custom documents, status bar, and SCM state.
Fields§
§ActiveCustomDocuments: Arc<Mutex<HashMap<String, CustomDocumentStateDTO>>>Active custom documents organized by ID.
ActiveStatusBarItems: Arc<Mutex<HashMap<String, StatusBarEntryDTO>>>Active status bar items organized by ID.
SourceControlManagementProviders: Arc<Mutex<HashMap<u32, SourceControlManagementProviderDTO>>>SCM providers organized by handle.
SourceControlManagementGroups: Arc<Mutex<HashMap<u32, HashMap<String, SourceControlManagementGroupDTO>>>>SCM groups organized by provider handle and group ID.
SourceControlManagementResources: Arc<Mutex<HashMap<u32, HashMap<String, Vec<SourceControlManagementResourceDTO>>>>>SCM resources organized by provider handle and group ID.
NextSourceControlManagementProviderHandle: Arc<AtomicU32>Counter for generating unique SCM provider handles.
Implementations§
Source§impl MarkerState
impl MarkerState
Sourcepub fn GetNextSourceControlManagementProviderHandle(&self) -> u32
pub fn GetNextSourceControlManagementProviderHandle(&self) -> u32
Gets the next available unique identifier for an SCM provider.
Sourcepub fn GetCustomDocuments(&self) -> HashMap<String, CustomDocumentStateDTO>
pub fn GetCustomDocuments(&self) -> HashMap<String, CustomDocumentStateDTO>
Gets all active custom documents.
Sourcepub fn AddOrUpdateCustomDocument(
&self,
id: String,
document: CustomDocumentStateDTO,
)
pub fn AddOrUpdateCustomDocument( &self, id: String, document: CustomDocumentStateDTO, )
Adds or updates a custom document.
Sourcepub fn RemoveCustomDocument(&self, id: &str)
pub fn RemoveCustomDocument(&self, id: &str)
Removes a custom document by its ID.
Sourcepub fn GetStatusBarItems(&self) -> HashMap<String, StatusBarEntryDTO>
pub fn GetStatusBarItems(&self) -> HashMap<String, StatusBarEntryDTO>
Gets all active status bar items.
Sourcepub fn AddOrUpdateStatusBarItem(&self, id: String, item: StatusBarEntryDTO)
pub fn AddOrUpdateStatusBarItem(&self, id: String, item: StatusBarEntryDTO)
Adds or updates a status bar item.
Sourcepub fn RemoveStatusBarItem(&self, id: &str)
pub fn RemoveStatusBarItem(&self, id: &str)
Removes a status bar item by its ID.
Trait Implementations§
Source§impl Clone for MarkerState
impl Clone for MarkerState
Source§fn clone(&self) -> MarkerState
fn clone(&self) -> MarkerState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MarkerState
impl RefUnwindSafe for MarkerState
impl Send for MarkerState
impl Sync for MarkerState
impl Unpin for MarkerState
impl UnwindSafe for MarkerState
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn 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>
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)
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)
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
impl<T> DowncastSync for T
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§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>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
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].