pub struct FetchMembers<'a, B: Backend> { /* private fields */ }Expand description
A request of guild members through the gateway, not sent yet: configure it, then
.await it. Made by MemberManager::fetch_all,
fetch_by_query and
fetch_many (D-270).
discord.js counterpart: the options of GuildMemberManager#fetch.
Implementations§
Source§impl<'a, B: Backend> FetchMembers<'a, B>
impl<'a, B: Backend> FetchMembers<'a, B>
Sourcepub const fn limit(self, limit: u32) -> Self
pub const fn limit(self, limit: u32) -> Self
The most members to return (for fetch_by_query:
1–100, 100 by default; for fetch_all: 0, every
member, by default). No effect on fetch_many.
discord.js counterpart: the limit option.
Trait Implementations§
Source§impl<B: Backend> Debug for FetchMembers<'_, B>
impl<B: Backend> Debug for FetchMembers<'_, B>
Source§impl<'a, B: Backend> IntoFuture for FetchMembers<'a, B>
impl<'a, B: Backend> IntoFuture for FetchMembers<'a, B>
Source§type Output = Result<Collection<Id<UserMarker>, Arc<CachedMember>>, GatewayRequestError>
type Output = Result<Collection<Id<UserMarker>, Arc<CachedMember>>, GatewayRequestError>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = Result<Collection<Id<UserMarker>, Arc<CachedMember>>, GatewayRequestError>> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = Result<Collection<Id<UserMarker>, Arc<CachedMember>>, GatewayRequestError>> + Send + 'a>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a, B> !RefUnwindSafe for FetchMembers<'a, B>
impl<'a, B> !UnwindSafe for FetchMembers<'a, B>
impl<'a, B> Freeze for FetchMembers<'a, B>
impl<'a, B> Send for FetchMembers<'a, B>
impl<'a, B> Sync for FetchMembers<'a, B>
impl<'a, B> Unpin for FetchMembers<'a, B>
impl<'a, B> UnsafeUnpin for FetchMembers<'a, B>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more