pub enum GeneralAddressType {
Exact(ExactAddressType),
Broadcast,
}
Expand description
Type to strict interaction with addressing during use of the library. It provides options to send packet to exact device or to all devices it can reach.
Variants§
Exact(ExactAddressType)
Sends the packet to exact device with this address.
Broadcast
Sends the packet to all devices it can reach.
Trait Implementations§
Source§impl Clone for GeneralAddressType
impl Clone for GeneralAddressType
Source§fn clone(&self) -> GeneralAddressType
fn clone(&self) -> GeneralAddressType
Returns a copy 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 From<u8> for GeneralAddressType
impl From<u8> for GeneralAddressType
Source§impl Into<GeneralAddressType> for ExactAddressType
impl Into<GeneralAddressType> for ExactAddressType
Source§fn into(self) -> GeneralAddressType
fn into(self) -> GeneralAddressType
Converts this type into the (usually inferred) input type.
Source§impl Into<u8> for GeneralAddressType
impl Into<u8> for GeneralAddressType
Source§impl PartialEq for GeneralAddressType
impl PartialEq for GeneralAddressType
impl Eq for GeneralAddressType
impl StructuralPartialEq for GeneralAddressType
Auto Trait Implementations§
impl Freeze for GeneralAddressType
impl RefUnwindSafe for GeneralAddressType
impl Send for GeneralAddressType
impl Sync for GeneralAddressType
impl Unpin for GeneralAddressType
impl UnwindSafe for GeneralAddressType
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