Skip to main content

Selector

Struct Selector 

Source
pub struct Selector<'a, T> { /* private fields */ }

Implementations§

Source§

impl<'a> Selector<'a, MessageEventPrivate>

Source

pub fn filter(&mut self, f: impl FnOnce(&MessageEventPrivate) -> bool)

Source

pub fn and_filter(self, f: impl FnOnce(&MessageEventPrivate) -> bool) -> Self

Source

pub async fn filter_async( &mut self, f: impl AsyncFnOnce(&MessageEventPrivate) -> bool, )

Source

pub async fn and_filter_async( self, f: impl AsyncFnOnce(&MessageEventPrivate) -> bool, ) -> Self

Source

pub fn filter_sub_type(&mut self, f: impl FnOnce(PrivateMessageSubType) -> bool)

Source

pub fn and_filter_sub_type( self, f: impl FnOnce(PrivateMessageSubType) -> bool, ) -> Self

Source

pub async fn filter_sub_type_async( &mut self, f: impl AsyncFnOnce(PrivateMessageSubType) -> bool, )

Source

pub async fn and_filter_sub_type_async( self, f: impl AsyncFnOnce(PrivateMessageSubType) -> bool, ) -> Self

Source

pub fn filter_message_id(&mut self, f: impl FnOnce(i32) -> bool)

Source

pub fn and_filter_message_id(self, f: impl FnOnce(i32) -> bool) -> Self

Source

pub async fn filter_message_id_async( &mut self, f: impl AsyncFnOnce(i32) -> bool, )

Source

pub async fn and_filter_message_id_async( self, f: impl AsyncFnOnce(i32) -> bool, ) -> Self

Source

pub fn filter_user_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_user_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_user_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_user_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_message(&mut self, f: impl FnOnce(&Vec<ReceiveSegment>) -> bool)

Source

pub fn and_filter_message( self, f: impl FnOnce(&Vec<ReceiveSegment>) -> bool, ) -> Self

Source

pub async fn filter_message_async( &mut self, f: impl AsyncFnOnce(&Vec<ReceiveSegment>) -> bool, )

Source

pub async fn and_filter_message_async( self, f: impl AsyncFnOnce(&Vec<ReceiveSegment>) -> bool, ) -> Self

Source

pub fn filter_raw_message(&mut self, f: impl FnOnce(&str) -> bool)

Source

pub fn and_filter_raw_message(self, f: impl FnOnce(&str) -> bool) -> Self

Source

pub async fn filter_raw_message_async( &mut self, f: impl AsyncFnOnce(&str) -> bool, )

Source

pub async fn and_filter_raw_message_async( self, f: impl AsyncFnOnce(&str) -> bool, ) -> Self

Source

pub fn filter_font(&mut self, f: impl FnOnce(i32) -> bool)

Source

pub fn and_filter_font(self, f: impl FnOnce(i32) -> bool) -> Self

Source

pub async fn filter_font_async(&mut self, f: impl AsyncFnOnce(i32) -> bool)

Source

pub async fn and_filter_font_async( self, f: impl AsyncFnOnce(i32) -> bool, ) -> Self

Source

pub fn filter_sender(&mut self, f: impl FnOnce(&PrivateMessageSender) -> bool)

Source

pub fn and_filter_sender( self, f: impl FnOnce(&PrivateMessageSender) -> bool, ) -> Self

Source

pub async fn filter_sender_async( &mut self, f: impl AsyncFnOnce(&PrivateMessageSender) -> bool, )

Source

pub async fn and_filter_sender_async( self, f: impl AsyncFnOnce(&PrivateMessageSender) -> bool, ) -> Self

Source

pub fn friend(&mut self)

Source

pub fn and_friend(self) -> Self

Source

pub fn not_friend(&mut self)

Source

pub fn and_not_friend(self) -> Self

Source

pub fn group(&mut self)

Source

pub fn and_group(self) -> Self

Source

pub fn not_group(&mut self)

Source

pub fn and_not_group(self) -> Self

Source

pub fn other(&mut self)

Source

pub fn and_other(self) -> Self

Source

pub fn not_other(&mut self)

Source

pub fn and_not_other(self) -> Self

Source§

impl<'a> Selector<'a, MessageEventGroup>

Source

pub fn filter(&mut self, f: impl FnOnce(&MessageEventGroup) -> bool)

Source

pub fn and_filter(self, f: impl FnOnce(&MessageEventGroup) -> bool) -> Self

Source

pub async fn filter_async( &mut self, f: impl AsyncFnOnce(&MessageEventGroup) -> bool, )

Source

pub async fn and_filter_async( self, f: impl AsyncFnOnce(&MessageEventGroup) -> bool, ) -> Self

Source

pub fn filter_sub_type(&mut self, f: impl FnOnce(GroupMessageSubType) -> bool)

Source

pub fn and_filter_sub_type( self, f: impl FnOnce(GroupMessageSubType) -> bool, ) -> Self

Source

pub async fn filter_sub_type_async( &mut self, f: impl AsyncFnOnce(GroupMessageSubType) -> bool, )

Source

pub async fn and_filter_sub_type_async( self, f: impl AsyncFnOnce(GroupMessageSubType) -> bool, ) -> Self

Source

pub fn filter_message_id(&mut self, f: impl FnOnce(i32) -> bool)

Source

pub fn and_filter_message_id(self, f: impl FnOnce(i32) -> bool) -> Self

Source

pub async fn filter_message_id_async( &mut self, f: impl AsyncFnOnce(i32) -> bool, )

Source

pub async fn and_filter_message_id_async( self, f: impl AsyncFnOnce(i32) -> bool, ) -> Self

Source

pub fn filter_group_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_group_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_group_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_group_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_user_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_user_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_user_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_user_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_anonymous( &mut self, f: impl FnOnce(&Option<GroupMessageAnonymous>) -> bool, )

Source

pub fn and_filter_anonymous( self, f: impl FnOnce(&Option<GroupMessageAnonymous>) -> bool, ) -> Self

Source

pub async fn filter_anonymous_async( &mut self, f: impl AsyncFnOnce(&Option<GroupMessageAnonymous>) -> bool, )

Source

pub async fn and_filter_anonymous_async( self, f: impl AsyncFnOnce(&Option<GroupMessageAnonymous>) -> bool, ) -> Self

Source

pub fn filter_message(&mut self, f: impl FnOnce(&Vec<ReceiveSegment>) -> bool)

Source

pub fn and_filter_message( self, f: impl FnOnce(&Vec<ReceiveSegment>) -> bool, ) -> Self

Source

pub async fn filter_message_async( &mut self, f: impl AsyncFnOnce(&Vec<ReceiveSegment>) -> bool, )

Source

pub async fn and_filter_message_async( self, f: impl AsyncFnOnce(&Vec<ReceiveSegment>) -> bool, ) -> Self

Source

pub fn filter_raw_message(&mut self, f: impl FnOnce(&str) -> bool)

Source

pub fn and_filter_raw_message(self, f: impl FnOnce(&str) -> bool) -> Self

Source

pub async fn filter_raw_message_async( &mut self, f: impl AsyncFnOnce(&str) -> bool, )

Source

pub async fn and_filter_raw_message_async( self, f: impl AsyncFnOnce(&str) -> bool, ) -> Self

Source

pub fn filter_font(&mut self, f: impl FnOnce(i32) -> bool)

Source

pub fn and_filter_font(self, f: impl FnOnce(i32) -> bool) -> Self

Source

pub async fn filter_font_async(&mut self, f: impl AsyncFnOnce(i32) -> bool)

Source

pub async fn and_filter_font_async( self, f: impl AsyncFnOnce(i32) -> bool, ) -> Self

Source

pub fn filter_sender(&mut self, f: impl FnOnce(&GroupMessageSender) -> bool)

Source

pub fn and_filter_sender( self, f: impl FnOnce(&GroupMessageSender) -> bool, ) -> Self

Source

pub async fn filter_sender_async( &mut self, f: impl AsyncFnOnce(&GroupMessageSender) -> bool, )

Source

pub async fn and_filter_sender_async( self, f: impl AsyncFnOnce(&GroupMessageSender) -> bool, ) -> Self

Source

pub fn normal(&mut self)

Source

pub fn and_normal(self) -> Self

Source

pub fn not_normal(&mut self)

Source

pub fn and_not_normal(self) -> Self

Source

pub fn anonymous(&mut self)

Source

pub fn and_anonymous(self) -> Self

Source

pub fn not_anonymous(&mut self)

Source

pub fn and_not_anonymous(self) -> Self

Source

pub fn notice(&mut self)

Source

pub fn and_notice(self) -> Self

Source

pub fn not_notice(&mut self)

Source

pub fn and_not_notice(self) -> Self

Source§

impl<'a> Selector<'a, MessageEvent>

Source§

impl<'a> Selector<'a, MetaEventLifecycle>

Source

pub fn filter(&mut self, f: impl FnOnce(MetaEventLifecycle) -> bool)

Source

pub fn and_filter(self, f: impl FnOnce(MetaEventLifecycle) -> bool) -> Self

Source

pub async fn filter_async( &mut self, f: impl AsyncFnOnce(MetaEventLifecycle) -> bool, )

Source

pub async fn and_filter_async( self, f: impl AsyncFnOnce(MetaEventLifecycle) -> bool, ) -> Self

Source

pub fn filter_sub_type(&mut self, f: impl FnOnce(LifecycleSubType) -> bool)

Source

pub fn and_filter_sub_type( self, f: impl FnOnce(LifecycleSubType) -> bool, ) -> Self

Source

pub async fn filter_sub_type_async( &mut self, f: impl AsyncFnOnce(LifecycleSubType) -> bool, )

Source

pub async fn and_filter_sub_type_async( self, f: impl AsyncFnOnce(LifecycleSubType) -> bool, ) -> Self

Source

pub fn enable(&mut self)

Source

pub fn and_enable(self) -> Self

Source

pub fn not_enable(&mut self)

Source

pub fn and_not_enable(self) -> Self

Source

pub fn disable(&mut self)

Source

pub fn and_disable(self) -> Self

Source

pub fn not_disable(&mut self)

Source

pub fn and_not_disable(self) -> Self

Source

pub fn connect(&mut self)

Source

pub fn and_connect(self) -> Self

Source

pub fn not_connect(&mut self)

Source

pub fn and_not_connect(self) -> Self

Source§

impl<'a> Selector<'a, MetaEventHeartbeat>

Source

pub fn filter(&mut self, f: impl FnOnce(&MetaEventHeartbeat) -> bool)

Source

pub fn and_filter(self, f: impl FnOnce(&MetaEventHeartbeat) -> bool) -> Self

Source

pub async fn filter_async( &mut self, f: impl AsyncFnOnce(&MetaEventHeartbeat) -> bool, )

Source

pub async fn and_filter_async( self, f: impl AsyncFnOnce(&MetaEventHeartbeat) -> bool, ) -> Self

Source

pub fn filter_status(&mut self, f: impl FnOnce(&HashMap<String, Value>) -> bool)

Source

pub fn and_filter_status( self, f: impl FnOnce(&HashMap<String, Value>) -> bool, ) -> Self

Source

pub async fn filter_status_async( &mut self, f: impl AsyncFnOnce(&HashMap<String, Value>) -> bool, )

Source

pub async fn and_filter_status_async( self, f: impl AsyncFnOnce(&HashMap<String, Value>) -> bool, ) -> Self

Source

pub fn filter_interval(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_interval(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_interval_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_interval_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source§

impl<'a> Selector<'a, MetaEvent>

Source§

impl<'a> Selector<'a, NoticeEventGroupUpload>

Source

pub fn filter(&mut self, f: impl FnOnce(&NoticeEventGroupUpload) -> bool)

Source

pub fn and_filter(self, f: impl FnOnce(&NoticeEventGroupUpload) -> bool) -> Self

Source

pub async fn filter_async( &mut self, f: impl AsyncFnOnce(&NoticeEventGroupUpload) -> bool, )

Source

pub async fn and_filter_async( self, f: impl AsyncFnOnce(&NoticeEventGroupUpload) -> bool, ) -> Self

Source

pub fn filter_group_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_group_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_group_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_group_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_user_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_user_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_user_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_user_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_file(&mut self, f: impl FnOnce(&GroupFile) -> bool)

Source

pub fn and_filter_file(self, f: impl FnOnce(&GroupFile) -> bool) -> Self

Source

pub async fn filter_file_async( &mut self, f: impl AsyncFnOnce(&GroupFile) -> bool, )

Source

pub async fn and_filter_file_async( self, f: impl AsyncFnOnce(&GroupFile) -> bool, ) -> Self

Source§

impl<'a> Selector<'a, NoticeEventGroupAdmin>

Source

pub fn filter(&mut self, f: impl FnOnce(&NoticeEventGroupAdmin) -> bool)

Source

pub fn and_filter(self, f: impl FnOnce(&NoticeEventGroupAdmin) -> bool) -> Self

Source

pub async fn filter_async( &mut self, f: impl AsyncFnOnce(&NoticeEventGroupAdmin) -> bool, )

Source

pub async fn and_filter_async( self, f: impl AsyncFnOnce(&NoticeEventGroupAdmin) -> bool, ) -> Self

Source

pub fn filter_sub_type(&mut self, f: impl FnOnce(GroupAdminType) -> bool)

Source

pub fn and_filter_sub_type(self, f: impl FnOnce(GroupAdminType) -> bool) -> Self

Source

pub async fn filter_sub_type_async( &mut self, f: impl AsyncFnOnce(GroupAdminType) -> bool, )

Source

pub async fn and_filter_sub_type_async( self, f: impl AsyncFnOnce(GroupAdminType) -> bool, ) -> Self

Source

pub fn filter_group_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_group_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_group_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_group_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_user_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_user_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_user_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_user_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn set(&mut self)

Source

pub fn and_set(self) -> Self

Source

pub fn not_set(&mut self)

Source

pub fn and_not_set(self) -> Self

Source

pub fn unset(&mut self)

Source

pub fn and_unset(self) -> Self

Source

pub fn not_unset(&mut self)

Source

pub fn and_not_unset(self) -> Self

Source§

impl<'a> Selector<'a, NoticeEventGroupDecrease>

Source

pub fn filter(&mut self, f: impl FnOnce(&NoticeEventGroupDecrease) -> bool)

Source

pub fn and_filter( self, f: impl FnOnce(&NoticeEventGroupDecrease) -> bool, ) -> Self

Source

pub async fn filter_async( &mut self, f: impl AsyncFnOnce(&NoticeEventGroupDecrease) -> bool, )

Source

pub async fn and_filter_async( self, f: impl AsyncFnOnce(&NoticeEventGroupDecrease) -> bool, ) -> Self

Source

pub fn filter_sub_type(&mut self, f: impl FnOnce(GroupDecreaseType) -> bool)

Source

pub fn and_filter_sub_type( self, f: impl FnOnce(GroupDecreaseType) -> bool, ) -> Self

Source

pub async fn filter_sub_type_async( &mut self, f: impl AsyncFnOnce(GroupDecreaseType) -> bool, )

Source

pub async fn and_filter_sub_type_async( self, f: impl AsyncFnOnce(GroupDecreaseType) -> bool, ) -> Self

Source

pub fn filter_operator_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_operator_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_operator_id_async( &mut self, f: impl AsyncFnOnce(i64) -> bool, )

Source

pub async fn and_filter_operator_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_user_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_user_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_user_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_user_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn leave(&mut self)

Source

pub fn and_leave(self) -> Self

Source

pub fn not_leave(&mut self)

Source

pub fn and_not_leave(self) -> Self

Source

pub fn kick(&mut self)

Source

pub fn and_kick(self) -> Self

Source

pub fn not_kick(&mut self)

Source

pub fn and_not_kick(self) -> Self

Source

pub fn kick_me(&mut self)

Source

pub fn and_kick_me(self) -> Self

Source

pub fn not_kick_me(&mut self)

Source

pub fn and_not_kick_me(self) -> Self

Source§

impl<'a> Selector<'a, NoticeEventGroupIncrease>

Source

pub fn filter(&mut self, f: impl FnOnce(&NoticeEventGroupIncrease) -> bool)

Source

pub fn and_filter( self, f: impl FnOnce(&NoticeEventGroupIncrease) -> bool, ) -> Self

Source

pub async fn filter_async( &mut self, f: impl AsyncFnOnce(&NoticeEventGroupIncrease) -> bool, )

Source

pub async fn and_filter_async( self, f: impl AsyncFnOnce(&NoticeEventGroupIncrease) -> bool, ) -> Self

Source

pub fn filter_sub_type(&mut self, f: impl FnOnce(GroupIncreaseType) -> bool)

Source

pub fn and_filter_sub_type( self, f: impl FnOnce(GroupIncreaseType) -> bool, ) -> Self

Source

pub async fn filter_sub_type_async( &mut self, f: impl AsyncFnOnce(GroupIncreaseType) -> bool, )

Source

pub async fn and_filter_sub_type_async( self, f: impl AsyncFnOnce(GroupIncreaseType) -> bool, ) -> Self

Source

pub fn filter_group_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_group_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_group_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_group_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_operator_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_operator_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_operator_id_async( &mut self, f: impl AsyncFnOnce(i64) -> bool, )

Source

pub async fn and_filter_operator_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_user_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_user_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_user_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_user_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn approve(&mut self)

Source

pub fn and_approve(self) -> Self

Source

pub fn not_approve(&mut self)

Source

pub fn and_not_approve(self) -> Self

Source

pub fn invite(&mut self)

Source

pub fn and_invite(self) -> Self

Source

pub fn not_invite(&mut self)

Source

pub fn and_not_invite(self) -> Self

Source§

impl<'a> Selector<'a, NoticeEventGroupBan>

Source

pub fn filter(&mut self, f: impl FnOnce(&NoticeEventGroupBan) -> bool)

Source

pub fn and_filter(self, f: impl FnOnce(&NoticeEventGroupBan) -> bool) -> Self

Source

pub async fn filter_async( &mut self, f: impl AsyncFnOnce(&NoticeEventGroupBan) -> bool, )

Source

pub async fn and_filter_async( self, f: impl AsyncFnOnce(&NoticeEventGroupBan) -> bool, ) -> Self

Source

pub fn filter_sub_type(&mut self, f: impl FnOnce(GroupBanType) -> bool)

Source

pub fn and_filter_sub_type(self, f: impl FnOnce(GroupBanType) -> bool) -> Self

Source

pub async fn filter_sub_type_async( &mut self, f: impl AsyncFnOnce(GroupBanType) -> bool, )

Source

pub async fn and_filter_sub_type_async( self, f: impl AsyncFnOnce(GroupBanType) -> bool, ) -> Self

Source

pub fn filter_group_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_group_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_group_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_group_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_operator_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_operator_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_operator_id_async( &mut self, f: impl AsyncFnOnce(i64) -> bool, )

Source

pub async fn and_filter_operator_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_user_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_user_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_user_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_user_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_duration(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_duration(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_duration_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_duration_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn ban(&mut self)

Source

pub fn and_ban(self) -> Self

Source

pub fn not_ban(&mut self)

Source

pub fn and_not_ban(self) -> Self

Source

pub fn lift_ban(&mut self)

Source

pub fn and_lift_ban(self) -> Self

Source

pub fn not_lift_ban(&mut self)

Source

pub fn and_not_lift_ban(self) -> Self

Source§

impl<'a> Selector<'a, NoticeEventFriendAdd>

Source

pub fn filter(&mut self, f: impl FnOnce(&NoticeEventFriendAdd) -> bool)

Source

pub fn and_filter(self, f: impl FnOnce(&NoticeEventFriendAdd) -> bool) -> Self

Source

pub async fn filter_async( &mut self, f: impl AsyncFnOnce(&NoticeEventFriendAdd) -> bool, )

Source

pub async fn and_filter_async( self, f: impl AsyncFnOnce(&NoticeEventFriendAdd) -> bool, ) -> Self

Source

pub fn filter_user_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_user_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_user_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_user_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source§

impl<'a> Selector<'a, NoticeEventGroupRecall>

Source

pub fn filter(&mut self, f: impl FnOnce(&NoticeEventGroupRecall) -> bool)

Source

pub fn and_filter(self, f: impl FnOnce(&NoticeEventGroupRecall) -> bool) -> Self

Source

pub async fn filter_async( &mut self, f: impl AsyncFnOnce(&NoticeEventGroupRecall) -> bool, )

Source

pub async fn and_filter_async( self, f: impl AsyncFnOnce(&NoticeEventGroupRecall) -> bool, ) -> Self

Source

pub fn filter_group_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_group_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_group_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_group_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_user_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_user_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_user_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_user_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_operator_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_operator_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_operator_id_async( &mut self, f: impl AsyncFnOnce(i64) -> bool, )

Source

pub async fn and_filter_operator_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_message_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_message_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_message_id_async( &mut self, f: impl AsyncFnOnce(i64) -> bool, )

Source

pub async fn and_filter_message_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source§

impl<'a> Selector<'a, NoticeEventFriendRecall>

Source

pub fn filter(&mut self, f: impl FnOnce(&NoticeEventFriendRecall) -> bool)

Source

pub fn and_filter( self, f: impl FnOnce(&NoticeEventFriendRecall) -> bool, ) -> Self

Source

pub async fn filter_async( &mut self, f: impl AsyncFnOnce(&NoticeEventFriendRecall) -> bool, )

Source

pub async fn and_filter_async( self, f: impl AsyncFnOnce(&NoticeEventFriendRecall) -> bool, ) -> Self

Source

pub fn filter_user_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_user_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_user_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_user_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_message_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_message_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_message_id_async( &mut self, f: impl AsyncFnOnce(i64) -> bool, )

Source

pub async fn and_filter_message_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source§

impl<'a> Selector<'a, NoticeEventNotify>

Source

pub fn filter(&mut self, f: impl FnOnce(&NoticeEventNotify) -> bool)

Source

pub fn and_filter(self, f: impl FnOnce(&NoticeEventNotify) -> bool) -> Self

Source

pub async fn filter_async( &mut self, f: impl AsyncFnOnce(&NoticeEventNotify) -> bool, )

Source

pub async fn and_filter_async( self, f: impl AsyncFnOnce(&NoticeEventNotify) -> bool, ) -> Self

Source

pub fn filter_group_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_group_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_group_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_group_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_user_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_user_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_user_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_user_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_data(&mut self, f: impl FnOnce(&NotifyType) -> bool)

Source

pub fn and_filter_data(self, f: impl FnOnce(&NotifyType) -> bool) -> Self

Source

pub async fn filter_data_async( &mut self, f: impl AsyncFnOnce(&NotifyType) -> bool, )

Source

pub async fn and_filter_data_async( self, f: impl AsyncFnOnce(&NotifyType) -> bool, ) -> Self

Source§

impl<'a> Selector<'a, NoticeEvent>

Source§

impl<'a> Selector<'a, RequestEventFriend>

Source

pub fn filter(&mut self, f: impl FnOnce(&RequestEventFriend) -> bool)

Source

pub fn and_filter(self, f: impl FnOnce(&RequestEventFriend) -> bool) -> Self

Source

pub async fn filter_async( &mut self, f: impl AsyncFnOnce(&RequestEventFriend) -> bool, )

Source

pub async fn and_filter_async( self, f: impl AsyncFnOnce(&RequestEventFriend) -> bool, ) -> Self

Source

pub fn filter_user_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_user_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_user_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_user_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_comment(&mut self, f: impl FnOnce(&str) -> bool)

Source

pub fn and_filter_comment(self, f: impl FnOnce(&str) -> bool) -> Self

Source

pub async fn filter_comment_async(&mut self, f: impl AsyncFnOnce(&str) -> bool)

Source

pub async fn and_filter_comment_async( self, f: impl AsyncFnOnce(&str) -> bool, ) -> Self

Source

pub fn filter_flag(&mut self, f: impl FnOnce(&str) -> bool)

Source

pub fn and_filter_flag(self, f: impl FnOnce(&str) -> bool) -> Self

Source

pub async fn filter_flag_async(&mut self, f: impl AsyncFnOnce(&str) -> bool)

Source

pub async fn and_filter_flag_async( self, f: impl AsyncFnOnce(&str) -> bool, ) -> Self

Source§

impl<'a> Selector<'a, RequestEventGroup>

Source

pub fn filter(&mut self, f: impl FnOnce(&RequestEventGroup) -> bool)

Source

pub fn and_filter(self, f: impl FnOnce(&RequestEventGroup) -> bool) -> Self

Source

pub async fn filter_async( &mut self, f: impl AsyncFnOnce(&RequestEventGroup) -> bool, )

Source

pub async fn and_filter_async( self, f: impl AsyncFnOnce(&RequestEventGroup) -> bool, ) -> Self

Source

pub fn filter_sub_type(&mut self, f: impl FnOnce(GroupType) -> bool)

Source

pub fn and_filter_sub_type(self, f: impl FnOnce(GroupType) -> bool) -> Self

Source

pub async fn filter_sub_type_async( &mut self, f: impl AsyncFnOnce(GroupType) -> bool, )

Source

pub async fn and_filter_sub_type_async( self, f: impl AsyncFnOnce(GroupType) -> bool, ) -> Self

Source

pub fn filter_group_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_group_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_group_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_group_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_user_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_user_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_user_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_user_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_comment(&mut self, f: impl FnOnce(&str) -> bool)

Source

pub fn and_filter_comment(self, f: impl FnOnce(&str) -> bool) -> Self

Source

pub async fn filter_comment_async(&mut self, f: impl AsyncFnOnce(&str) -> bool)

Source

pub async fn and_filter_comment_async( self, f: impl AsyncFnOnce(&str) -> bool, ) -> Self

Source

pub fn filter_flag(&mut self, f: impl FnOnce(&str) -> bool)

Source

pub fn and_filter_flag(self, f: impl FnOnce(&str) -> bool) -> Self

Source

pub async fn filter_flag_async(&mut self, f: impl AsyncFnOnce(&str) -> bool)

Source

pub async fn and_filter_flag_async( self, f: impl AsyncFnOnce(&str) -> bool, ) -> Self

Source

pub fn add(&mut self)

Source

pub fn and_add(self) -> Self

Source

pub fn not_add(&mut self)

Source

pub fn and_not_add(self) -> Self

Source

pub fn invite(&mut self)

Source

pub fn and_invite(self) -> Self

Source

pub fn not_invite(&mut self)

Source

pub fn and_not_invite(self) -> Self

Source§

impl<'a> Selector<'a, RequestEvent>

Source§

impl<'a> Selector<'a, EventMessage>

Source

pub fn message_event_selector(&self) -> Selector<'a, MessageEvent>

Source

pub fn filter(&mut self, f: impl FnOnce(&'a EventMessage) -> bool)

Source

pub fn and_filter(self, f: impl FnOnce(&'a EventMessage) -> bool) -> Self

Source

pub async fn filter_async( &mut self, f: impl AsyncFnOnce(&'a EventMessage) -> bool, )

Source

pub async fn and_filter_async( self, f: impl AsyncFnOnce(&'a EventMessage) -> bool, ) -> Self

Source

pub fn filter_time(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_time(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_time_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_time_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_self_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_self_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_self_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_self_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_message_event(&mut self, f: impl FnOnce(&MessageEvent) -> bool)

Source

pub fn and_filter_message_event( self, f: impl FnOnce(&MessageEvent) -> bool, ) -> Self

Source

pub async fn filter_message_event_async( &mut self, f: impl AsyncFnOnce(&MessageEvent) -> bool, )

Source

pub async fn and_filter_message_event_async( self, f: impl AsyncFnOnce(&MessageEvent) -> bool, ) -> Self

Source§

impl<'a> Selector<'a, EventNotice>

Source

pub fn notice_event_selector(&self) -> Selector<'a, NoticeEvent>

Source

pub fn filter(&mut self, f: impl FnOnce(&'a EventNotice) -> bool)

Source

pub fn and_filter(self, f: impl FnOnce(&'a EventNotice) -> bool) -> Self

Source

pub async fn filter_async( &mut self, f: impl AsyncFnOnce(&'a EventNotice) -> bool, )

Source

pub async fn and_filter_async( self, f: impl AsyncFnOnce(&'a EventNotice) -> bool, ) -> Self

Source

pub fn filter_time(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_time(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_time_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_time_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_self_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_self_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_self_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_self_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_notice_event(&mut self, f: impl FnOnce(&NoticeEvent) -> bool)

Source

pub fn and_filter_notice_event( self, f: impl FnOnce(&NoticeEvent) -> bool, ) -> Self

Source

pub async fn filter_notice_event_async( &mut self, f: impl AsyncFnOnce(&NoticeEvent) -> bool, )

Source

pub async fn and_filter_notice_event_async( self, f: impl AsyncFnOnce(&NoticeEvent) -> bool, ) -> Self

Source§

impl<'a> Selector<'a, EventRequest>

Source

pub fn request_event_selector(&self) -> Selector<'a, RequestEvent>

Source

pub fn filter(&mut self, f: impl FnOnce(&'a EventRequest) -> bool)

Source

pub fn and_filter(self, f: impl FnOnce(&'a EventRequest) -> bool) -> Self

Source

pub async fn filter_async( &mut self, f: impl AsyncFnOnce(&'a EventRequest) -> bool, )

Source

pub async fn and_filter_async( self, f: impl AsyncFnOnce(&'a EventRequest) -> bool, ) -> Self

Source

pub fn filter_time(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_time(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_time_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_time_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_self_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_self_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_self_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_self_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_request_event(&mut self, f: impl FnOnce(&RequestEvent) -> bool)

Source

pub fn and_filter_request_event( self, f: impl FnOnce(&RequestEvent) -> bool, ) -> Self

Source

pub async fn filter_request_event_async( &mut self, f: impl AsyncFnOnce(&RequestEvent) -> bool, )

Source

pub async fn and_filter_request_event_async( self, f: impl AsyncFnOnce(&RequestEvent) -> bool, ) -> Self

Source§

impl<'a> Selector<'a, EventMetaEvent>

Source

pub fn meta_event_selector(&self) -> Selector<'a, MetaEvent>

Source

pub fn filter(&mut self, f: impl FnOnce(&'a EventMetaEvent) -> bool)

Source

pub fn and_filter(self, f: impl FnOnce(&'a EventMetaEvent) -> bool) -> Self

Source

pub async fn filter_async( &mut self, f: impl AsyncFnOnce(&'a EventMetaEvent) -> bool, )

Source

pub async fn and_filter_async( self, f: impl AsyncFnOnce(&'a EventMetaEvent) -> bool, ) -> Self

Source

pub fn filter_time(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_time(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_time_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_time_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_self_id(&mut self, f: impl FnOnce(i64) -> bool)

Source

pub fn and_filter_self_id(self, f: impl FnOnce(i64) -> bool) -> Self

Source

pub async fn filter_self_id_async(&mut self, f: impl AsyncFnOnce(i64) -> bool)

Source

pub async fn and_filter_self_id_async( self, f: impl AsyncFnOnce(i64) -> bool, ) -> Self

Source

pub fn filter_meta_event(&mut self, f: impl FnOnce(&MetaEvent) -> bool)

Source

pub fn and_filter_meta_event(self, f: impl FnOnce(&MetaEvent) -> bool) -> Self

Source

pub async fn filter_meta_event_async( &mut self, f: impl AsyncFnOnce(&MetaEvent) -> bool, )

Source

pub async fn and_filter_meta_event_async( self, f: impl AsyncFnOnce(&MetaEvent) -> bool, ) -> Self

Source§

impl<'a> Selector<'a, Event>

Source

pub fn message(&self) -> Selector<'a, EventMessage>

Source

pub fn notice(&self) -> Selector<'a, EventNotice>

Source

pub fn request(&self) -> Selector<'a, EventRequest>

Source

pub fn meta_event(&self) -> Selector<'a, EventMetaEvent>

Source§

impl<'a, T> Selector<'a, T>

Source

pub fn map<R>(&self, handler: impl FnOnce(&'a T) -> R) -> Option<R>

Source

pub async fn map_async<R>( &self, handler: impl AsyncFnOnce(&'a T) -> R, ) -> Option<R>

Source

pub fn select(&self) -> Option<&'a T>

Source

pub fn is_matched(&self) -> bool

Auto Trait Implementations§

§

impl<'a, T> Freeze for Selector<'a, T>

§

impl<'a, T> RefUnwindSafe for Selector<'a, T>
where T: RefUnwindSafe,

§

impl<'a, T> Send for Selector<'a, T>
where T: Sync,

§

impl<'a, T> Sync for Selector<'a, T>
where T: Sync,

§

impl<'a, T> Unpin for Selector<'a, T>

§

impl<'a, T> UnsafeUnpin for Selector<'a, T>

§

impl<'a, T> UnwindSafe for Selector<'a, T>
where T: RefUnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more