pub struct BroadcastId(/* private fields */);
Expand description
Broadcast_ID is a 3-byte data on the wire. Defined in BAP spec v1.0.1 section 3.7.2.1.
Implementations§
Trait Implementations§
Source§impl Clone for BroadcastId
impl Clone for BroadcastId
Source§fn clone(&self) -> BroadcastId
fn clone(&self) -> BroadcastId
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 BroadcastId
impl Debug for BroadcastId
Source§impl Decodable for BroadcastId
impl Decodable for BroadcastId
type Error = Error
Source§fn decode(buf: &[u8]) -> (Result<Self, Self::Error>, usize)
fn decode(buf: &[u8]) -> (Result<Self, Self::Error>, usize)
Decodes into a new object or an error, and the number of bytes that
the decoding consumed. Should attempt to consume the entire item from
the buffer in the case of an error. If the item end cannot be determined,
return an error and consume the entirety of the bufer (
buf.len()
)§fn decode_multiple(
buf: &[u8],
max: Option<usize>,
) -> (Vec<Result<Self, Self::Error>>, usize)
fn decode_multiple( buf: &[u8], max: Option<usize>, ) -> (Vec<Result<Self, Self::Error>>, usize)
Tries to decode a collection of this object concatenated in a buffer.
Returns a vector of items (or errors) and the number of bytes consumed to
decode them.
Continues to decode items until the buffer is consumed or the max items.
If None, will decode the entire buffer.
Source§impl Display for BroadcastId
impl Display for BroadcastId
Source§impl Encodable for BroadcastId
impl Encodable for BroadcastId
Source§impl From<BroadcastId> for u32
impl From<BroadcastId> for u32
Source§fn from(value: BroadcastId) -> u32
fn from(value: BroadcastId) -> u32
Converts to this type from the input type.
Source§impl Hash for BroadcastId
impl Hash for BroadcastId
Source§impl PartialEq for BroadcastId
impl PartialEq for BroadcastId
Source§impl TryFrom<u32> for BroadcastId
impl TryFrom<u32> for BroadcastId
impl Copy for BroadcastId
impl Eq for BroadcastId
impl StructuralPartialEq for BroadcastId
Auto Trait Implementations§
impl Freeze for BroadcastId
impl RefUnwindSafe for BroadcastId
impl Send for BroadcastId
impl Sync for BroadcastId
impl Unpin for BroadcastId
impl UnwindSafe for BroadcastId
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