Struct rustdds::dds::data_types::GUID [−][src]
DDS/RTPS GUID
Fields
guidPrefix: GuidPrefix
entityId: EntityId
Implementations
impl GUID
[src]
pub const GUID_UNKNOWN: GUID
[src]
pub fn new(prefix: GuidPrefix, entity_id: EntityId) -> GUID
[src]
pub fn new_particiapnt_guid() -> GUID
[src]
Generates new GUID for Participant when guidPrefix
is random
pub fn dummy_test_guid(entity_kind: EntityKind) -> GUID
[src]
pub fn from_prefix(self, entity_id: EntityId) -> GUID
[src]
Generates GUID for specific entityId from current prefix
pub fn new_with_prefix_and_id(prefix: GuidPrefix, entity_id: EntityId) -> GUID
[src]
Creates GUID from known values
pub fn as_usize(&self) -> usize
[src]
Trait Implementations
impl Clone for GUID
[src]
impl Copy for GUID
[src]
impl Debug for GUID
[src]
impl Default for GUID
[src]
impl<'de> Deserialize<'de> for GUID
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for GUID
[src]
impl Hash for GUID
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Key for GUID
[src]
fn into_hash_key(&self) -> u128
[src]
impl Ord for GUID
[src]
fn cmp(&self, other: &GUID) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<GUID> for GUID
[src]
impl PartialOrd<GUID> for GUID
[src]
fn partial_cmp(&self, other: &GUID) -> Option<Ordering>
[src]
fn lt(&self, other: &GUID) -> bool
[src]
fn le(&self, other: &GUID) -> bool
[src]
fn gt(&self, other: &GUID) -> bool
[src]
fn ge(&self, other: &GUID) -> bool
[src]
impl<'a_, C_: Context> Readable<'a_, C_> for GUID
[src]
fn read_from<R_: Reader<'a_, C_>>(_reader_: &mut R_) -> Result<Self, C_::Error>
[src]
fn minimum_bytes_needed() -> usize
[src]
pub fn read_from_buffer(buffer: &'a [u8]) -> Result<Self, <C as Context>::Error> where
Self: DefaultContext<Context = C>,
C: Default,
[src]
Self: DefaultContext<Context = C>,
C: Default,
pub fn read_from_buffer_owned(
buffer: &[u8]
) -> Result<Self, <C as Context>::Error> where
Self: DefaultContext<Context = C>,
C: Default,
[src]
buffer: &[u8]
) -> Result<Self, <C as Context>::Error> where
Self: DefaultContext<Context = C>,
C: Default,
pub fn read_from_stream(
stream: impl Read
) -> Result<Self, <C as Context>::Error> where
Self: DefaultContext<Context = C>,
C: Default,
[src]
stream: impl Read
) -> Result<Self, <C as Context>::Error> where
Self: DefaultContext<Context = C>,
C: Default,
pub fn read_from_file(
path: impl AsRef<Path>
) -> Result<Self, <C as Context>::Error> where
Self: DefaultContext<Context = C>,
C: Default,
[src]
path: impl AsRef<Path>
) -> Result<Self, <C as Context>::Error> where
Self: DefaultContext<Context = C>,
C: Default,
pub fn read_from_buffer_with_ctx(
context: C,
buffer: &'a [u8]
) -> Result<Self, <C as Context>::Error>
[src]
context: C,
buffer: &'a [u8]
) -> Result<Self, <C as Context>::Error>
pub fn read_from_buffer_owned_with_ctx(
context: C,
buffer: &[u8]
) -> Result<Self, <C as Context>::Error>
[src]
context: C,
buffer: &[u8]
) -> Result<Self, <C as Context>::Error>
pub fn read_from_stream_with_ctx<S>(
context: C,
stream: S
) -> Result<Self, <C as Context>::Error> where
S: Read,
[src]
context: C,
stream: S
) -> Result<Self, <C as Context>::Error> where
S: Read,
pub fn read_from_file_with_ctx(
context: C,
path: impl AsRef<Path>
) -> Result<Self, <C as Context>::Error>
[src]
context: C,
path: impl AsRef<Path>
) -> Result<Self, <C as Context>::Error>
impl Serialize for GUID
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for GUID
[src]
impl StructuralPartialEq for GUID
[src]
impl<C_: Context> Writable<C_> for GUID
[src]
fn write_to<T_: ?Sized + Writer<C_>>(
&self,
_writer_: &mut T_
) -> Result<(), C_::Error>
[src]
&self,
_writer_: &mut T_
) -> Result<(), C_::Error>
pub fn write_to_buffer(
&self,
buffer: &mut [u8]
) -> Result<(), <C as Context>::Error> where
Self: DefaultContext<Context = C>,
C: Default,
[src]
&self,
buffer: &mut [u8]
) -> Result<(), <C as Context>::Error> where
Self: DefaultContext<Context = C>,
C: Default,
pub fn write_to_vec(&self) -> Result<Vec<u8, Global>, <C as Context>::Error> where
Self: DefaultContext<Context = C>,
C: Default,
[src]
Self: DefaultContext<Context = C>,
C: Default,
pub fn write_to_stream<S>(&self, stream: S) -> Result<(), <C as Context>::Error> where
Self: DefaultContext<Context = C>,
C: Default,
S: Write,
[src]
Self: DefaultContext<Context = C>,
C: Default,
S: Write,
pub fn write_to_file(
&self,
path: impl AsRef<Path>
) -> Result<(), <C as Context>::Error> where
Self: DefaultContext<Context = C>,
C: Default,
[src]
&self,
path: impl AsRef<Path>
) -> Result<(), <C as Context>::Error> where
Self: DefaultContext<Context = C>,
C: Default,
pub fn write_to_buffer_with_ctx(
&self,
context: C,
buffer: &mut [u8]
) -> Result<(), <C as Context>::Error>
[src]
&self,
context: C,
buffer: &mut [u8]
) -> Result<(), <C as Context>::Error>
pub fn write_to_vec_with_ctx(
&self,
context: C
) -> Result<Vec<u8, Global>, <C as Context>::Error>
[src]
&self,
context: C
) -> Result<Vec<u8, Global>, <C as Context>::Error>
pub fn write_to_stream_with_ctx<S>(
&self,
context: C,
stream: S
) -> Result<(), <C as Context>::Error> where
S: Write,
[src]
&self,
context: C,
stream: S
) -> Result<(), <C as Context>::Error> where
S: Write,
pub fn write_to_file_with_ctx(
&self,
context: C,
path: impl AsRef<Path>
) -> Result<(), <C as Context>::Error>
[src]
&self,
context: C,
path: impl AsRef<Path>
) -> Result<(), <C as Context>::Error>
pub fn bytes_needed(&self) -> Result<usize, <C as Context>::Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for GUID
[src]
impl Send for GUID
[src]
impl Sync for GUID
[src]
impl Unpin for GUID
[src]
impl UnwindSafe for GUID
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,