pub struct RelayDelivery {
pub acked: bool,
pub delivered: usize,
}Expand description
Outcome of a relay cast (bd-0b4e45): whether the relay acknowledged it and how many registered devices it was routed to.
Fields§
§acked: boolTrue when the relay returned a delivery result. A legacy relay (or a read
timeout) leaves this false, so a caller must not treat delivered as
authoritative unless acked is true.
delivered: usizeNumber of registered devices the cast was routed to (0 = the target device id is not connected to the relay).
Trait Implementations§
Source§impl Clone for RelayDelivery
impl Clone for RelayDelivery
Source§fn clone(&self) -> RelayDelivery
fn clone(&self) -> RelayDelivery
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 RelayDelivery
impl Debug for RelayDelivery
Source§impl PartialEq for RelayDelivery
impl PartialEq for RelayDelivery
impl Copy for RelayDelivery
impl Eq for RelayDelivery
impl StructuralPartialEq for RelayDelivery
Auto Trait Implementations§
impl Freeze for RelayDelivery
impl RefUnwindSafe for RelayDelivery
impl Send for RelayDelivery
impl Sync for RelayDelivery
impl Unpin for RelayDelivery
impl UnsafeUnpin for RelayDelivery
impl UnwindSafe for RelayDelivery
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.