pub struct Node { /* private fields */ }
Expand description
A node in the configuration graph. A node represents a Task in the system Graph.
Implementations§
Source§impl Node
impl Node
pub fn new(id: &str, ptype: &str) -> Self
pub fn get_id(&self) -> String
pub fn get_type(&self) -> &str
pub fn set_type(self, name: Option<String>) -> Self
pub fn is_background(&self) -> bool
pub fn get_instance_config(&self) -> Option<&ComponentConfig>
Sourcepub fn is_run_in_sim(&self) -> bool
pub fn is_run_in_sim(&self) -> bool
By default, assume a source or a sink is not run in sim. Normal tasks will be run in sim and this parameter ignored.
pub fn is_logging_enabled(&self) -> bool
pub fn get_param<T: From<Value>>(&self, key: &str) -> Option<T>
pub fn set_param<T: Into<Value>>(&mut self, key: &str, value: T)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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,
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