#[repr(C)]pub struct rmw_subscription_t {
pub topic_name: *const c_char,
pub type_name: *const c_char,
pub qos: rmw_qos_profile_t,
pub can_loan_messages: bool,
pub _reserved: [u8; 7],
pub backend_data: *mut c_void,
}Expand description
Subscription entity (phase-301: renamed from subscriber to the upstream rmw_subscription_t term). Same shape as the publisher; can_loan_messages
means the backend exposes the receive-side loan primitive.
Fields§
§topic_name: *const c_charTopic name (borrowed; outlives the subscription).
type_name: *const c_charFully-qualified type name. Borrowed.
qos: rmw_qos_profile_tQoS subset honoured by this subscription.
can_loan_messages: boolBackend exposes loan_recv / release_recv (Phase 99).
DERIVED by the runtime from vtable->take_loaned_message;
a backend’s write is overwritten (issue 0814).
_reserved: [u8; 7]Reserved for future fields; must be zero.
backend_data: *mut c_voidOpaque backend state. NULL if creation failed.
Trait Implementations§
Source§impl Clone for rmw_subscription_t
impl Clone for rmw_subscription_t
Source§fn clone(&self) -> rmw_subscription_t
fn clone(&self) -> rmw_subscription_t
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for rmw_subscription_t
Auto Trait Implementations§
impl !Send for rmw_subscription_t
impl !Sync for rmw_subscription_t
impl Freeze for rmw_subscription_t
impl RefUnwindSafe for rmw_subscription_t
impl Unpin for rmw_subscription_t
impl UnsafeUnpin for rmw_subscription_t
impl UnwindSafe for rmw_subscription_t
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