pub struct AllowlistSource { /* private fields */ }Expand description
Source of the current SenderAllowlist.
Implementations§
Source§impl AllowlistSource
impl AllowlistSource
Sourcepub fn from_file(path: PathBuf, required: bool) -> Self
pub fn from_file(path: PathBuf, required: bool) -> Self
Read path; with required, a missing or invalid file denies every
sender (TALON_SENDER_ALLOWLIST_REQUIRED).
Sourcepub fn fixed(list: SenderAllowlist) -> Self
pub fn fixed(list: SenderAllowlist) -> Self
Always the given allowlist (tests).
Sourcepub fn current(&self) -> Arc<SenderAllowlist> ⓘ
pub fn current(&self) -> Arc<SenderAllowlist> ⓘ
The allowlist as currently on disk.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AllowlistSource
impl RefUnwindSafe for AllowlistSource
impl Send for AllowlistSource
impl Sync for AllowlistSource
impl Unpin for AllowlistSource
impl UnsafeUnpin for AllowlistSource
impl UnwindSafe for AllowlistSource
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