pub struct ReceiveState { /* private fields */ }
Implementations§
Source§impl ReceiveState
impl ReceiveState
pub fn new( source_id: u8, source_address_type: AddressType, source_address: [u8; 6], source_adv_sid: u8, broadcast_id: BroadcastId, pa_sync_state: PaSyncState, big_encryption: EncryptionStatus, subgroups: Vec<BigSubgroup>, ) -> ReceiveState
pub fn pa_sync_state(&self) -> PaSyncState
pub fn big_encryption(&self) -> EncryptionStatus
pub fn broadcast_id(&self) -> BroadcastId
pub fn source_id(&self) -> SourceId
Trait Implementations§
Source§impl Clone for ReceiveState
impl Clone for ReceiveState
Source§fn clone(&self) -> ReceiveState
fn clone(&self) -> ReceiveState
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 ReceiveState
impl Debug for ReceiveState
Source§impl Decodable for ReceiveState
impl Decodable for ReceiveState
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 Encodable for ReceiveState
impl Encodable for ReceiveState
Source§impl PartialEq for ReceiveState
impl PartialEq for ReceiveState
impl StructuralPartialEq for ReceiveState
Auto Trait Implementations§
impl Freeze for ReceiveState
impl RefUnwindSafe for ReceiveState
impl Send for ReceiveState
impl Sync for ReceiveState
impl Unpin for ReceiveState
impl UnwindSafe for ReceiveState
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