pub struct DeviceAnnounce {
pub id: String,
pub name: String,
pub model: String,
pub serial: String,
pub api_version: Option<u32>,
}Expand description
Periodic announcement published by the camera service.
Fields§
§id: String§name: String§model: String§serial: String§api_version: Option<u32>Zenoh API version supported by this service.
None when deserializing from older services that do not include the
field — handled gracefully by the app (warns but still discovers).
Trait Implementations§
Source§impl Clone for DeviceAnnounce
impl Clone for DeviceAnnounce
Source§fn clone(&self) -> DeviceAnnounce
fn clone(&self) -> DeviceAnnounce
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 moreSource§impl Debug for DeviceAnnounce
impl Debug for DeviceAnnounce
Source§impl<'de> Deserialize<'de> for DeviceAnnounce
impl<'de> Deserialize<'de> for DeviceAnnounce
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DeviceAnnounce
impl RefUnwindSafe for DeviceAnnounce
impl Send for DeviceAnnounce
impl Sync for DeviceAnnounce
impl Unpin for DeviceAnnounce
impl UnsafeUnpin for DeviceAnnounce
impl UnwindSafe for DeviceAnnounce
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