pub struct WellenContainer {
hierarchy: Arc<Hierarchy>,
server: Option<String>,
scopes: Vec<String>,
vars: Vec<String>,
varrefs: Vec<VariableRef>,
signals: HashMap<SignalRef, Arc<Signal>>,
signals_to_be_loaded: HashSet<SignalRef>,
time_table: Arc<TimeTable>,
source: Option<SignalSource>,
unique_id: u64,
body_loaded: bool,
}Fields§
§hierarchy: Arc<Hierarchy>§server: Option<String>the url of a remote server, None if waveforms are loaded locally
scopes: Vec<String>§vars: Vec<String>§varrefs: Vec<VariableRef>§signals: HashMap<SignalRef, Arc<Signal>>§signals_to_be_loaded: HashSet<SignalRef>keeps track of signals that need to be loaded once the body of the waveform file has been loaded
time_table: Arc<TimeTable>§source: Option<SignalSource>§unique_id: u64§body_loaded: boolImplementations§
Source§impl WellenContainer
impl WellenContainer
pub fn new(hierarchy: Arc<Hierarchy>, server: Option<String>) -> Self
pub fn body_loaded(&self) -> bool
pub fn add_body(&mut self, body: BodyResult) -> Result<Option<LoadSignalsCmd>>
pub fn metadata(&self) -> MetaData
pub fn max_timestamp(&self) -> Option<BigUint>
pub fn is_fully_loaded(&self) -> bool
pub fn variable_names(&self) -> Vec<String>
fn lookup_scope(&self, scope: &ScopeRef) -> Option<ScopeRef>
fn has_scope(&self, scope: &ScopeRef) -> bool
pub fn get_scope_type(&self, scope: &ScopeRef) -> Option<ScopeType>
pub fn variables(&self) -> Vec<VariableRef> ⓘ
pub fn variables_in_scope(&self, scope_ref: &ScopeRef) -> Vec<VariableRef> ⓘ
pub fn parameters_in_scope(&self, scope_ref: &ScopeRef) -> Vec<VariableRef> ⓘ
pub fn no_variables_in_scope(&self, scope_ref: &ScopeRef) -> bool
pub fn update_variable_ref(&self, variable: &VariableRef) -> Option<VariableRef>
pub fn get_var(&self, r: &VariableRef) -> Result<&Var>
pub fn get_enum_map(&self, v: &Var) -> HashMap<String, String>
fn get_var_ref(&self, r: &VariableRef) -> Result<VarRef>
pub fn load_variables<S: AsRef<VariableRef>, T: Iterator<Item = S>>( &mut self, variables: T, ) -> Result<Option<LoadSignalsCmd>>
pub fn load_all_params(&mut self) -> Result<Option<LoadSignalsCmd>>
pub fn on_signals_loaded( &mut self, res: LoadSignalsResult, ) -> Result<Option<LoadSignalsCmd>>
fn load_signals(&mut self, ids: &[SignalRef]) -> Option<LoadSignalsCmd>
fn time_to_time_table_idx(&self, time: &BigUint) -> Option<TimeTableIdx>
pub fn query_variable( &self, variable: &VariableRef, time: &BigUint, ) -> Result<Option<QueryResult>>
pub fn scope_names(&self) -> Vec<String>
pub fn root_scopes(&self) -> Vec<ScopeRef> ⓘ
pub fn child_scopes(&self, scope_ref: &ScopeRef) -> Result<Vec<ScopeRef>>
pub fn scope_exists(&self, scope: &ScopeRef) -> bool
Sourcepub fn scope_is_variable(&self, scope: &ScopeRef) -> bool
pub fn scope_is_variable(&self, scope: &ScopeRef) -> bool
True if the scope represents a compound variable
pub fn get_scope_tooltip_data(&self, scope: &ScopeRef) -> String
pub fn variable_to_meta(&self, variable: &VariableRef) -> Result<VariableMeta>
pub fn signal_accessor( &self, signal_ref: SignalRef, ) -> Result<WellenSignalAccessor>
Sourcepub fn signal_ref(&self, variable: &VariableRef) -> Result<SignalRef>
pub fn signal_ref(&self, variable: &VariableRef) -> Result<SignalRef>
Get the SignalRef for a variable (canonical signal identity for cache keys)
Sourcepub fn is_signal_loaded(&self, signal_ref: SignalRef) -> bool
pub fn is_signal_loaded(&self, signal_ref: SignalRef) -> bool
Check if a signal is already loaded (data available)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WellenContainer
impl !RefUnwindSafe for WellenContainer
impl Send for WellenContainer
impl Sync for WellenContainer
impl Unpin for WellenContainer
impl !UnwindSafe for WellenContainer
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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.Source§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.Source§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.Source§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.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§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>
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