#[non_exhaustive]pub struct NtpRestriction {
pub address: String,
pub mask: Option<String>,
pub noquery: bool,
}Expand description
A restrict <address> entry under ntp.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.address: String§mask: Option<String>§noquery: boolTrait Implementations§
Source§impl Clone for NtpRestriction
impl Clone for NtpRestriction
Source§impl Debug for NtpRestriction
impl Debug for NtpRestriction
impl Eq for NtpRestriction
Source§impl PartialEq for NtpRestriction
impl PartialEq for NtpRestriction
impl StructuralPartialEq for NtpRestriction
Auto Trait Implementations§
impl Forget for NtpRestriction
impl Freeze for NtpRestriction
impl Move for NtpRestriction
impl RefUnwindSafe for NtpRestriction
impl Send for NtpRestrictionwhere
RawVecInner: Send,
impl Sync for NtpRestrictionwhere
RawVecInner: Sync,
impl Unpin for NtpRestriction
impl UnsafeUnpin for NtpRestriction
impl UnwindSafe for NtpRestrictionwhere
RawVecInner: UnwindSafe,
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