pub struct TimeSyncSourceRestriction(/* private fields */);Expand description
Validated exact-source allowlist. A configured empty list denies everyone.
None in TimeSyncPolicy leaves sources unrestricted.
Implementations§
Source§impl TimeSyncSourceRestriction
impl TimeSyncSourceRestriction
Sourcepub fn new(sources: Vec<TimeSyncSource>) -> Result<Self, Error>
pub fn new(sources: Vec<TimeSyncSource>) -> Result<Self, Error>
Accept at most 256 entries, each with 1 to BACnetAddress::MAX_MAC_LEN
(18) address octets, the longest source the network layer delivers
(#1198), so a longer entry could never match (#1266). Routed networks
must be 1..=65534. These are local configuration limits, not
authentication guarantees.
Trait Implementations§
Source§impl Clone for TimeSyncSourceRestriction
impl Clone for TimeSyncSourceRestriction
Source§impl Debug for TimeSyncSourceRestriction
impl Debug for TimeSyncSourceRestriction
impl Eq for TimeSyncSourceRestriction
impl StructuralPartialEq for TimeSyncSourceRestriction
Auto Trait Implementations§
impl Freeze for TimeSyncSourceRestriction
impl RefUnwindSafe for TimeSyncSourceRestriction
impl Send for TimeSyncSourceRestriction
impl Sync for TimeSyncSourceRestriction
impl Unpin for TimeSyncSourceRestriction
impl UnsafeUnpin for TimeSyncSourceRestriction
impl UnwindSafe for TimeSyncSourceRestriction
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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