pub enum ContactInteractionPolicy {
Ignore,
Accept,
AcceptFromContact,
AllowList,
}Variants§
Ignore
Do not react, leave it for the custom event handler
Accept
Accept all messages
AcceptFromContact
Only accept messages from contacts. Pairs strongly with NewContactPolicy of AllowList
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 ContactInteractionPolicy
impl RefUnwindSafe for ContactInteractionPolicy
impl Send for ContactInteractionPolicy
impl Sync for ContactInteractionPolicy
impl Unpin for ContactInteractionPolicy
impl UnwindSafe for ContactInteractionPolicy
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