pub struct ConfigureWarningsFrame {
pub frame_type: &'static str,
pub session_id: Option<String>,
pub project_root: String,
pub source_file_count: usize,
pub source_file_count_exceeds_max: bool,
pub max_callgraph_files: usize,
pub warnings: Vec<Value>,
}Expand description
Pushed after configure has completed, when the deferred file walk and language detection produce warnings (missing formatter/checker/LSP binaries, or “project too large” file-count exceeded). The walk runs in a background thread so configure itself returns in <100 ms even on huge directories (e.g. user’s $HOME). When the walk finishes, AFT pushes one frame with the merged warnings — the plugin delivers them through the same path as the synchronous warnings that configure used to return.
Fields§
§frame_type: &'static str§session_id: Option<String>Session id from the configure request that spawned the deferred walk. Project-shared bridges can serve multiple sessions, so plugins need this to route async warning notifications back to the initiating session.
project_root: StringProject root the warnings refer to. Plugins use this to scope the session-id deduplication of repeated identical warnings.
source_file_count: usizeSource-file count discovered by the bounded walk (may stop short of
the full count if max_callgraph_files is exceeded).
source_file_count_exceeds_max: booltrue when the walk hit the configured max_callgraph_files cap;
in that case source_file_count is cap + 1.
max_callgraph_files: usizeConfigured callgraph file cap, echoed for plugin display.
warnings: Vec<Value>Merged formatter/checker/LSP missing-binary warnings.
Implementations§
Source§impl ConfigureWarningsFrame
impl ConfigureWarningsFrame
pub fn new( project_root: impl Into<String>, source_file_count: usize, source_file_count_exceeds_max: bool, max_callgraph_files: usize, warnings: Vec<Value>, ) -> Self
pub fn new_with_session_id( session_id: Option<String>, project_root: impl Into<String>, source_file_count: usize, source_file_count_exceeds_max: bool, max_callgraph_files: usize, warnings: Vec<Value>, ) -> Self
Trait Implementations§
Source§impl Clone for ConfigureWarningsFrame
impl Clone for ConfigureWarningsFrame
Source§fn clone(&self) -> ConfigureWarningsFrame
fn clone(&self) -> ConfigureWarningsFrame
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConfigureWarningsFrame
impl Debug for ConfigureWarningsFrame
Auto Trait Implementations§
impl Freeze for ConfigureWarningsFrame
impl RefUnwindSafe for ConfigureWarningsFrame
impl Send for ConfigureWarningsFrame
impl Sync for ConfigureWarningsFrame
impl Unpin for ConfigureWarningsFrame
impl UnsafeUnpin for ConfigureWarningsFrame
impl UnwindSafe for ConfigureWarningsFrame
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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>
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