pub struct FilterRule { /* private fields */ }Expand description
One rule of a join request filter: the leading bytes of JoinEUI then DevEUI it matches, and what it does with a match.
Implementations§
Source§impl FilterRule
impl FilterRule
Sourcepub fn new(prefix: &[u8], action: FilterAction) -> Option<FilterRule>
pub fn new(prefix: &[u8], action: FilterAction) -> Option<FilterRule>
Builds a rule.
§Arguments
prefix- the leading bytes of JoinEUI then DevEUI, most significant first as an EUI is written: three bytes match an organizationally unique identifier, eight a JoinEUI, and sixteen one device.action- what to do with a join request it matches.
§Returns
The rule, or None for an empty prefix or one past sixteen bytes.
Sourcepub const fn action(&self) -> FilterAction
pub const fn action(&self) -> FilterAction
Trait Implementations§
Source§impl Clone for FilterRule
impl Clone for FilterRule
Source§fn clone(&self) -> FilterRule
fn clone(&self) -> FilterRule
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 moreimpl Copy for FilterRule
Source§impl Debug for FilterRule
impl Debug for FilterRule
impl Eq for FilterRule
Source§impl Hash for FilterRule
impl Hash for FilterRule
Source§impl PartialEq for FilterRule
impl PartialEq for FilterRule
impl StructuralPartialEq for FilterRule
Auto Trait Implementations§
impl Freeze for FilterRule
impl RefUnwindSafe for FilterRule
impl Send for FilterRule
impl Sync for FilterRule
impl Unpin for FilterRule
impl UnsafeUnpin for FilterRule
impl UnwindSafe for FilterRule
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