pub enum NewContactPolicy {
Ignore,
Block,
Accept,
AllowList,
}Expand description
How new contacts should be treated
Variants§
Ignore
Do not react, leave it for the custom event handler
Block
Block all new contacts
Accept
Accept all new contacts
AllowList
AllowList is a list of handles that connections will be allowed from and connected to, and will be accepted everything else will be ignored
Auto Trait Implementations§
impl Freeze for NewContactPolicy
impl RefUnwindSafe for NewContactPolicy
impl Send for NewContactPolicy
impl Sync for NewContactPolicy
impl Unpin for NewContactPolicy
impl UnwindSafe for NewContactPolicy
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