pub struct Config {Show 14 fields
pub namespace: String,
pub nodename: OwnedKeyExpr,
pub domain: u32,
pub ros_localhost_only: bool,
pub ros_automatic_discovery_range: Option<RosAutomaticDiscoveryRange>,
pub ros_static_peers: Option<Vec<String>>,
pub allowance: Option<Allowance>,
pub pub_max_frequencies: Vec<(Regex, f32)>,
pub transient_local_cache_multiplier: usize,
pub queries_timeout: Option<QueriesTimeouts>,
pub reliable_routes_blocking: bool,
pub pub_priorities: Vec<(Regex, (Priority, bool))>,
pub work_thread_num: usize,
pub max_block_thread_num: usize,
/* private fields */
}
Fields§
§namespace: String
§nodename: OwnedKeyExpr
§domain: u32
§ros_localhost_only: bool
§ros_automatic_discovery_range: Option<RosAutomaticDiscoveryRange>
§ros_static_peers: Option<Vec<String>>
§allowance: Option<Allowance>
§pub_max_frequencies: Vec<(Regex, f32)>
§transient_local_cache_multiplier: usize
§queries_timeout: Option<QueriesTimeouts>
§reliable_routes_blocking: bool
§pub_priorities: Vec<(Regex, (Priority, bool))>
§work_thread_num: usize
§max_block_thread_num: usize
Implementations§
Source§impl Config
impl Config
pub fn get_pub_max_frequencies(&self, ros2_name: &str) -> Option<f32>
pub fn get_pub_priority_and_express( &self, ros2_name: &str, ) -> Option<(Priority, bool)>
pub fn get_queries_timeout_tl_sub(&self, ros2_name: &str) -> Duration
pub fn get_queries_timeout_service(&self, ros2_name: &str) -> Duration
pub fn get_queries_timeout_action_send_goal(&self, ros2_name: &str) -> Duration
pub fn get_queries_timeout_action_cancel_goal( &self, ros2_name: &str, ) -> Duration
pub fn get_queries_timeout_action_get_result(&self, ros2_name: &str) -> Duration
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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 Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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