Struct ReceivedObject
pub struct ReceivedObject {
pub group_id: u64,
pub subgroup_id: u64,
pub object_id: u64,
pub status: Option<ObjectStatus>,
pub payload: Bytes,
pub extension_headers: ExtensionHeaders,
}Expand description
An object of a subscription or a FETCH response.
Fields§
§group_id: u64§subgroup_id: u640 for an object that arrived in a datagram.
object_id: u64§status: Option<ObjectStatus>The Object Status (draft-14 §10.2.1.1) of an object without a payload;
None for one with a payload.
payload: Bytes§extension_headers: ExtensionHeadersTrait Implementations§
§impl Clone for ReceivedObject
impl Clone for ReceivedObject
§fn clone(&self) -> ReceivedObject
fn clone(&self) -> ReceivedObject
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 more§impl Debug for ReceivedObject
impl Debug for ReceivedObject
impl Eq for ReceivedObject
§impl From<Object> for ReceivedObject
impl From<Object> for ReceivedObject
§fn from(object: Object) -> ReceivedObject
fn from(object: Object) -> ReceivedObject
Converts to this type from the input type.
§impl From<TrackObject> for ReceivedObject
impl From<TrackObject> for ReceivedObject
§fn from(object: TrackObject) -> ReceivedObject
fn from(object: TrackObject) -> ReceivedObject
Converts to this type from the input type.
§impl PartialEq for ReceivedObject
impl PartialEq for ReceivedObject
impl StructuralPartialEq for ReceivedObject
Auto Trait Implementations§
impl !Freeze for ReceivedObject
impl RefUnwindSafe for ReceivedObject
impl Send for ReceivedObject
impl Sync for ReceivedObject
impl Unpin for ReceivedObject
impl UnsafeUnpin for ReceivedObject
impl UnwindSafe for ReceivedObject
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.