pub struct ServiceHeader {
pub guid: i64,
pub seq: u64,
}Expand description
The struct is used by ROS service. If you want to sent ROS service with Zenoh directly. You should include the header.
Fields§
§guid: i64§seq: u64Trait Implementations§
Source§impl CdrFixed for ServiceHeader
impl CdrFixed for ServiceHeader
Source§const CDR_SIZE: usize = 16
const CDR_SIZE: usize = 16
The wire size of this type in CDR (not counting any encapsulation
header). See the trait-level docs for when this value is reliable.
Source§fn read_cdr(cursor: &mut CdrCursor<'_>) -> Result<Self, CdrError>
fn read_cdr(cursor: &mut CdrCursor<'_>) -> Result<Self, CdrError>
Read this type from the cursor (cursor is already past the CDR header).
Source§impl Clone for ServiceHeader
impl Clone for ServiceHeader
Source§fn clone(&self) -> ServiceHeader
fn clone(&self) -> ServiceHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServiceHeader
impl Debug for ServiceHeader
Source§impl PartialEq for ServiceHeader
impl PartialEq for ServiceHeader
impl Copy for ServiceHeader
impl StructuralPartialEq for ServiceHeader
Auto Trait Implementations§
impl Freeze for ServiceHeader
impl RefUnwindSafe for ServiceHeader
impl Send for ServiceHeader
impl Sync for ServiceHeader
impl Unpin for ServiceHeader
impl UnsafeUnpin for ServiceHeader
impl UnwindSafe for ServiceHeader
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