[−][src]Enum serenity::client::bridge::gateway::ShardRunnerMessage
A message to send from a shard over a WebSocket.
Variants
Indicates that the client is to send a member chunk message.
Fields of ChunkGuild
guild_id: GuildId
The IDs of the Guild
to chunk.
limit: Option<u16>
The maximum number of members to receive GuildMembersChunkEvent
s
for.
filter: ChunkGuildFilter
A filter to apply to the returned members.
nonce: Option<String>
Optional nonce to identify GuildMembersChunkEvent
responses.
Indicates that the client is to close with the given status code and reason.
You should rarely - if ever - need this, but the option is available.
Prefer to use the ShardManager
to shutdown WebSocket clients if you
are intending to send a 1000 close code.
Indicates that the client is to send a custom WebSocket message.
Indicates that the client is to update the shard's presence's activity.
SetPresence(OnlineStatus, Option<Activity>)
Indicates that the client is to update the shard's presence in its entirity.
SetStatus(OnlineStatus)
Indicates that the client is to update the shard's presence's status.
SetMessageFilter(MessageFilter)
Sends a new filter for messages to the shard.
SetReactionFilter(ReactionFilter)
Sends a new filter for reactions to the shard.
Trait Implementations
impl Clone for ShardRunnerMessage
[src]
pub fn clone(&self) -> ShardRunnerMessage
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ShardRunnerMessage
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ShardRunnerMessage
[src]
impl Send for ShardRunnerMessage
[src]
impl Sync for ShardRunnerMessage
[src]
impl Unpin for ShardRunnerMessage
[src]
impl !UnwindSafe for ShardRunnerMessage
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,