pub struct Ros2DdsFormatter;Expand description
zenoh-plugin-ros2dds compatible formatter.
Trait Implementations§
Source§impl KeyExprFormatter for Ros2DdsFormatter
impl KeyExprFormatter for Ros2DdsFormatter
Source§const ESCAPE_CHAR: char = SLASH_REPLACEMENT_CHAR
const ESCAPE_CHAR: char = SLASH_REPLACEMENT_CHAR
ros2dds uses ‘§’ (U+00A7) to escape slashes
Source§const ADMIN_SPACE: &'static str = "@ros2_lv"
const ADMIN_SPACE: &'static str = "@ros2_lv"
Admin space prefix for ros2dds liveliness tokens
Source§fn encode_qos(qos: &QosProfile, keyless: bool) -> String
fn encode_qos(qos: &QosProfile, keyless: bool) -> String
Encode QoS in ros2dds format.
Format: <keyless>:<reliability>:<durability>:<history_kind>,<depth>[:<user_data>]
- keyless: ‘K’ if not keyless, empty if keyless
- reliability: 0=BEST_EFFORT, 1=RELIABLE, empty=default
- durability: 0=VOLATILE, 1=TRANSIENT_LOCAL, empty=default
- history:
<kind>,<depth>where kind is 0=KEEP_LAST, 1=KEEP_ALL
Source§fn decode_qos(s: &str) -> Result<(bool, QosProfile)>
fn decode_qos(s: &str) -> Result<(bool, QosProfile)>
Decode QoS from ros2dds format.
Source§fn topic_key_expr(entity: &EndpointEntity) -> Result<TopicKE>
fn topic_key_expr(entity: &EndpointEntity) -> Result<TopicKE>
Generate topic key expression for data publication/subscription.
Source§fn liveliness_key_expr(
entity: &EndpointEntity,
zid: &ZenohId,
) -> Result<LivelinessKE>
fn liveliness_key_expr( entity: &EndpointEntity, zid: &ZenohId, ) -> Result<LivelinessKE>
Generate liveliness token for endpoint entity discovery.
Source§fn node_liveliness_key_expr(_entity: &NodeEntity) -> Result<LivelinessKE>
fn node_liveliness_key_expr(_entity: &NodeEntity) -> Result<LivelinessKE>
Generate liveliness token for node entity discovery.
Source§fn parse_liveliness(ke: &KeyExpr<'_>) -> Result<Entity>
fn parse_liveliness(ke: &KeyExpr<'_>) -> Result<Entity>
Parse liveliness token back to entity.
Source§fn mangle_name(name: &str) -> String
fn mangle_name(name: &str) -> String
Mangle a name (replace slashes with escape char).
Source§fn demangle_name(name: &str) -> String
fn demangle_name(name: &str) -> String
Demangle a name (restore slashes from escape char).
Auto Trait Implementations§
impl Freeze for Ros2DdsFormatter
impl RefUnwindSafe for Ros2DdsFormatter
impl Send for Ros2DdsFormatter
impl Sync for Ros2DdsFormatter
impl Unpin for Ros2DdsFormatter
impl UnsafeUnpin for Ros2DdsFormatter
impl UnwindSafe for Ros2DdsFormatter
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
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