#[repr(C)]pub struct rmw_session_t {
pub node_name: *const c_char,
pub namespace_: *const c_char,
pub _reserved: [u8; 8],
pub backend_data: *mut c_void,
}Expand description
Per-process RMW session — the entity returned by vtable->create_session.
Carries the node identity (used for diagnostics + wire-level topic-key derivation in some backends) plus the opaque backend-private state.
The 8-byte _reserved slot is sized for a forthcoming
vtable: const struct nros_rmw_vtable_t * field that Phase 104’s
multi-instance work will land here. Backends and runtime keep
these bytes zero.
Fields§
§node_name: *const c_charNode name (borrowed from caller; outlives the session).
namespace_: *const c_charNode namespace (borrowed from caller; outlives the session).
_reserved: [u8; 8]Reserved for future fields (Phase 104 vtable pointer slot); must be zero.
backend_data: *mut c_voidOpaque backend state. NULL for an uninitialised session.
Trait Implementations§
Source§impl Clone for rmw_session_t
impl Clone for rmw_session_t
Source§fn clone(&self) -> rmw_session_t
fn clone(&self) -> rmw_session_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_session_t
Auto Trait Implementations§
impl !Send for rmw_session_t
impl !Sync for rmw_session_t
impl Freeze for rmw_session_t
impl RefUnwindSafe for rmw_session_t
impl Unpin for rmw_session_t
impl UnsafeUnpin for rmw_session_t
impl UnwindSafe for rmw_session_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