Struct serenity::model::permissions::Permissions
source · [−]pub struct Permissions { /* private fields */ }
Expand description
A set of permissions that can be assigned to User
s and Role
s via
PermissionOverwrite
s, roles globally in a Guild
, and to
GuildChannel
s.
Implementations
sourceimpl Permissions
impl Permissions
sourcepub const CREATE_INSTANT_INVITE: Self = _
pub const CREATE_INSTANT_INVITE: Self = _
Allows for the creation of RichInvite
s.
sourcepub const KICK_MEMBERS: Self = _
pub const KICK_MEMBERS: Self = _
Allows for the kicking of guild members.
sourcepub const BAN_MEMBERS: Self = _
pub const BAN_MEMBERS: Self = _
Allows the banning of guild members.
sourcepub const ADMINISTRATOR: Self = _
pub const ADMINISTRATOR: Self = _
Allows all permissions, bypassing channel permission overwrites.
sourcepub const MANAGE_CHANNELS: Self = _
pub const MANAGE_CHANNELS: Self = _
Allows management and editing of guild channels.
sourcepub const MANAGE_GUILD: Self = _
pub const MANAGE_GUILD: Self = _
Allows management and editing of the guild.
sourcepub const ADD_REACTIONS: Self = _
pub const ADD_REACTIONS: Self = _
sourcepub const VIEW_AUDIT_LOG: Self = _
pub const VIEW_AUDIT_LOG: Self = _
Allows viewing a guild’s audit logs.
sourcepub const PRIORITY_SPEAKER: Self = _
pub const PRIORITY_SPEAKER: Self = _
Allows the use of priority speaking in voice channels.
pub const STREAM: Self = _
sourcepub const VIEW_CHANNEL: Self = _
pub const VIEW_CHANNEL: Self = _
Allows guild members to view a channel, which includes reading messages in text channels and joining voice channels.
sourcepub const SEND_MESSAGES: Self = _
pub const SEND_MESSAGES: Self = _
Allows sending messages in a guild channel.
sourcepub const SEND_TTS_MESSAGES: Self = _
pub const SEND_TTS_MESSAGES: Self = _
Allows the sending of text-to-speech messages in a channel.
sourcepub const MANAGE_MESSAGES: Self = _
pub const MANAGE_MESSAGES: Self = _
Allows the deleting of other messages in a guild channel.
Note: This does not allow the editing of other messages.
sourcepub const EMBED_LINKS: Self = _
pub const EMBED_LINKS: Self = _
Allows links from this user - or users of this role - to be embedded, with potential data such as a thumbnail, description, and page name.
sourcepub const ATTACH_FILES: Self = _
pub const ATTACH_FILES: Self = _
Allows uploading of files.
sourcepub const READ_MESSAGE_HISTORY: Self = _
pub const READ_MESSAGE_HISTORY: Self = _
Allows the reading of a channel’s message history.
sourcepub const MENTION_EVERYONE: Self = _
pub const MENTION_EVERYONE: Self = _
Allows the usage of the @everyone
mention, which will notify all
users in a channel. The @here
mention will also be available, and
can be used to mention all non-offline users.
Note: You probably want this to be disabled for most roles and users.
sourcepub const USE_EXTERNAL_EMOJIS: Self = _
pub const USE_EXTERNAL_EMOJIS: Self = _
Allows the usage of custom emojis from other guilds.
This does not dictate whether custom emojis in this guild can be used in other guilds.
sourcepub const VIEW_GUILD_INSIGHTS: Self = _
pub const VIEW_GUILD_INSIGHTS: Self = _
Allows for viewing guild insights.
sourcepub const MUTE_MEMBERS: Self = _
pub const MUTE_MEMBERS: Self = _
Allows the muting of members in a voice channel.
sourcepub const DEAFEN_MEMBERS: Self = _
pub const DEAFEN_MEMBERS: Self = _
Allows the deafening of members in a voice channel.
sourcepub const MOVE_MEMBERS: Self = _
pub const MOVE_MEMBERS: Self = _
Allows the moving of members from one voice channel to another.
sourcepub const CHANGE_NICKNAME: Self = _
pub const CHANGE_NICKNAME: Self = _
Allows members to change their own nickname in the guild.
sourcepub const MANAGE_NICKNAMES: Self = _
pub const MANAGE_NICKNAMES: Self = _
Allows members to change other members’ nicknames.
sourcepub const MANAGE_ROLES: Self = _
pub const MANAGE_ROLES: Self = _
Allows management and editing of roles below their own.
sourcepub const MANAGE_WEBHOOKS: Self = _
pub const MANAGE_WEBHOOKS: Self = _
Allows management of webhooks.
sourcepub const MANAGE_EMOJIS_AND_STICKERS: Self = _
pub const MANAGE_EMOJIS_AND_STICKERS: Self = _
Allows management of emojis and stickers created without the use of an
Integration
.
sourcepub const USE_SLASH_COMMANDS: Self = _
pub const USE_SLASH_COMMANDS: Self = _
Allows using slash commands.
sourcepub const REQUEST_TO_SPEAK: Self = _
pub const REQUEST_TO_SPEAK: Self = _
Allows for requesting to speak in stage channels.
sourcepub const MANAGE_EVENTS: Self = _
pub const MANAGE_EVENTS: Self = _
Allows for creating, editing, and deleting scheduled events
sourcepub const MANAGE_THREADS: Self = _
pub const MANAGE_THREADS: Self = _
Allows for deleting and archiving threads, and viewing all private threads.
sourcepub const CREATE_PUBLIC_THREADS: Self = _
pub const CREATE_PUBLIC_THREADS: Self = _
Allows for creating threads.
sourcepub const CREATE_PRIVATE_THREADS: Self = _
pub const CREATE_PRIVATE_THREADS: Self = _
Allows for creating private threads.
sourcepub const USE_EXTERNAL_STICKERS: Self = _
pub const USE_EXTERNAL_STICKERS: Self = _
Allows the usage of custom stickers from other servers.
sourcepub const SEND_MESSAGES_IN_THREADS: Self = _
pub const SEND_MESSAGES_IN_THREADS: Self = _
Allows for sending messages in threads
sourcepub const USE_EMBEDDED_ACTIVITIES: Self = _
pub const USE_EMBEDDED_ACTIVITIES: Self = _
Allows for launching activities in a voice channel
sourcepub const MODERATE_MEMBERS: Self = _
pub const MODERATE_MEMBERS: Self = _
Allows for timing out users to prevent them from sending or reacting to messages in chat and threads, and from speaking in voice and stage channels.
sourcepub const fn from_bits(bits: u64) -> Option<Self>
pub const fn from_bits(bits: u64) -> Option<Self>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: u64) -> Self
pub const fn from_bits_truncate(bits: u64) -> Self
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u64) -> Self
pub const unsafe fn from_bits_unchecked(bits: u64) -> Self
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Safety
The caller of the bitflags!
macro can chose to allow or
disallow extra bits for their bitflags type.
The caller of from_bits_unchecked()
has to ensure that
all bits correspond to a defined flag or that extra bits
are valid for this bitflags type.
sourcepub const fn intersects(&self, other: Self) -> bool
pub const fn intersects(&self, other: Self) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub const fn contains(&self, other: Self) -> bool
pub const fn contains(&self, other: Self) -> bool
Returns true
if all of the flags in other
are contained within self
.
sourcepub fn set(&mut self, other: Self, value: bool)
pub fn set(&mut self, other: Self, value: bool)
Inserts or removes the specified flags depending on the passed value.
sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection between the flags in self
and
other
.
Specifically, the returned set contains only the flags which are
present in both self
and other
.
This is equivalent to using the &
operator (e.g.
ops::BitAnd
), as in flags & other
.
sourcepub const fn union(self, other: Self) -> Self
pub const fn union(self, other: Self) -> Self
Returns the union of between the flags in self
and other
.
Specifically, the returned set contains all flags which are
present in either self
or other
, including any which are
present in both (see Self::symmetric_difference
if that
is undesirable).
This is equivalent to using the |
operator (e.g.
ops::BitOr
), as in flags | other
.
sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns the difference between the flags in self
and other
.
Specifically, the returned set contains all flags present in
self
, except for the ones present in other
.
It is also conceptually equivalent to the “bit-clear” operation:
flags & !other
(and this syntax is also supported).
This is equivalent to using the -
operator (e.g.
ops::Sub
), as in flags - other
.
sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the symmetric difference between the flags
in self
and other
.
Specifically, the returned set contains the flags present which
are present in self
or other
, but that are not present in
both. Equivalently, it contains the flags present in exactly
one of the sets self
and other
.
This is equivalent to using the ^
operator (e.g.
ops::BitXor
), as in flags ^ other
.
sourcepub const fn complement(self) -> Self
pub const fn complement(self) -> Self
Returns the complement of this set of flags.
Specifically, the returned set contains all the flags which are
not set in self
, but which are allowed for this type.
Alternatively, it can be thought of as the set difference
between Self::all()
and self
(e.g. Self::all() - self
)
This is equivalent to using the !
operator (e.g.
ops::Not
), as in !flags
.
sourceimpl Permissions
impl Permissions
sourcepub fn get_permission_names(self) -> Vec<&'static str>
pub fn get_permission_names(self) -> Vec<&'static str>
Returns a list of names of all contained permissions.
sourceimpl Permissions
impl Permissions
sourcepub fn add_reactions(self) -> bool
Available on crate feature model
only.
pub fn add_reactions(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Add Reactions permission.
sourcepub fn administrator(self) -> bool
Available on crate feature model
only.
pub fn administrator(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Administrator permission.
sourcepub fn attach_files(self) -> bool
Available on crate feature model
only.
pub fn attach_files(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Attach Files permission.
sourcepub fn ban_members(self) -> bool
Available on crate feature model
only.
pub fn ban_members(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Ban Members permission.
sourcepub fn change_nickname(self) -> bool
Available on crate feature model
only.
pub fn change_nickname(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Change Nickname permission.
sourcepub fn connect(self) -> bool
Available on crate feature model
only.
pub fn connect(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Connect permission.
sourcepub fn view_audit_log(self) -> bool
Available on crate feature model
only.
pub fn view_audit_log(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the View Audit Log permission.
sourcepub fn view_channel(self) -> bool
Available on crate feature model
only.
pub fn view_channel(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the View Channel permission.
sourcepub fn view_guild_insights(self) -> bool
Available on crate feature model
only.
pub fn view_guild_insights(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the View Guild Insights permission.
sourcepub fn priority_speaker(self) -> bool
Available on crate feature model
only.
pub fn priority_speaker(self) -> bool
model
only.Shorthand for checking that the set of permission contains the Priority Speaker permission.
sourcepub fn stream(self) -> bool
Available on crate feature model
only.
pub fn stream(self) -> bool
model
only.Shorthand for checking that the set of permission contains the Stream permission.
sourcepub fn create_instant_invite(self) -> bool
Available on crate feature model
only.
pub fn create_instant_invite(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Create Instant Invite permission.
sourcepub fn create_private_threads(self) -> bool
Available on crate feature model
only.
pub fn create_private_threads(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Create Private Threads permission.
sourcepub fn create_public_threads(self) -> bool
Available on crate feature model
only.
pub fn create_public_threads(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Create Public Threads permission.
sourcepub fn deafen_members(self) -> bool
Available on crate feature model
only.
pub fn deafen_members(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Deafen Members permission.
sourcepub fn embed_links(self) -> bool
Available on crate feature model
only.
pub fn embed_links(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Embed Links permission.
sourcepub fn external_emojis(self) -> bool
Available on crate feature model
only.
pub fn external_emojis(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Use External Emojis permission.
sourcepub fn kick_members(self) -> bool
Available on crate feature model
only.
pub fn kick_members(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Kick Members permission.
sourcepub fn manage_channels(self) -> bool
Available on crate feature model
only.
pub fn manage_channels(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Manage Channels permission.
sourcepub fn manage_emojis_and_stickers(self) -> bool
Available on crate feature model
only.
pub fn manage_emojis_and_stickers(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Manage Emojis and Stickers permission.
sourcepub fn manage_events(self) -> bool
Available on crate feature model
only.
pub fn manage_events(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Manage Events permission.
sourcepub fn manage_guild(self) -> bool
Available on crate feature model
only.
pub fn manage_guild(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Manage Guild permission.
sourcepub fn manage_messages(self) -> bool
Available on crate feature model
only.
pub fn manage_messages(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Manage Messages permission.
sourcepub fn manage_nicknames(self) -> bool
Available on crate feature model
only.
pub fn manage_nicknames(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Manage Nicknames permission.
sourcepub fn manage_roles(self) -> bool
Available on crate feature model
only.
pub fn manage_roles(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Manage Roles permission.
sourcepub fn manage_threads(self) -> bool
Available on crate feature model
only.
pub fn manage_threads(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Manage Threads permission.
sourcepub fn manage_webhooks(self) -> bool
Available on crate feature model
only.
pub fn manage_webhooks(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Manage Webhooks permission.
sourcepub fn mention_everyone(self) -> bool
Available on crate feature model
only.
pub fn mention_everyone(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Mention Everyone permission.
sourcepub fn moderate_members(self) -> bool
Available on crate feature model
only.
pub fn moderate_members(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Moderate Members permission.
sourcepub fn move_members(self) -> bool
Available on crate feature model
only.
pub fn move_members(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Move Members permission.
sourcepub fn mute_members(self) -> bool
Available on crate feature model
only.
pub fn mute_members(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Mute Members permission.
sourcepub fn read_message_history(self) -> bool
Available on crate feature model
only.
pub fn read_message_history(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Read Message History permission.
sourcepub fn send_messages(self) -> bool
Available on crate feature model
only.
pub fn send_messages(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Send Messages permission.
sourcepub fn send_messages_in_threads(self) -> bool
Available on crate feature model
only.
pub fn send_messages_in_threads(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Send Messages in Threads permission.
sourcepub fn send_tts_messages(self) -> bool
Available on crate feature model
only.
pub fn send_tts_messages(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Send TTS Messages permission.
sourcepub fn speak(self) -> bool
Available on crate feature model
only.
pub fn speak(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Speak permission.
sourcepub fn request_to_speak(self) -> bool
Available on crate feature model
only.
pub fn request_to_speak(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Request To Speak permission.
sourcepub fn use_embedded_activities(self) -> bool
Available on crate feature model
only.
pub fn use_embedded_activities(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Use Embedded Activities permission.
sourcepub fn use_external_emojis(self) -> bool
Available on crate feature model
only.
pub fn use_external_emojis(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Use External Emojis permission.
sourcepub fn use_external_stickers(self) -> bool
Available on crate feature model
only.
pub fn use_external_stickers(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Use External Stickers permission.
sourcepub fn use_slash_commands(self) -> bool
Available on crate feature model
only.
pub fn use_slash_commands(self) -> bool
model
only.Shorthand for checking that the set of permissions contains the Use Slash Commands permission.
Trait Implementations
sourceimpl Binary for Permissions
impl Binary for Permissions
sourceimpl BitAnd<Permissions> for Permissions
impl BitAnd<Permissions> for Permissions
type Output = Permissions
type Output = Permissions
The resulting type after applying the &
operator.
sourceimpl BitAndAssign<Permissions> for Permissions
impl BitAndAssign<Permissions> for Permissions
sourcefn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Disables all flags disabled in the set.
sourceimpl BitOr<Permissions> for Permissions
impl BitOr<Permissions> for Permissions
sourcefn bitor(self, other: Permissions) -> Self
fn bitor(self, other: Permissions) -> Self
Returns the union of the two sets of flags.
type Output = Permissions
type Output = Permissions
The resulting type after applying the |
operator.
sourceimpl BitOrAssign<Permissions> for Permissions
impl BitOrAssign<Permissions> for Permissions
sourcefn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Adds the set of flags.
sourceimpl BitXor<Permissions> for Permissions
impl BitXor<Permissions> for Permissions
sourcefn bitxor(self, other: Self) -> Self
fn bitxor(self, other: Self) -> Self
Returns the left flags, but with all the right flags toggled.
type Output = Permissions
type Output = Permissions
The resulting type after applying the ^
operator.
sourceimpl BitXorAssign<Permissions> for Permissions
impl BitXorAssign<Permissions> for Permissions
sourcefn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
Toggles the set of flags.
sourceimpl Clone for Permissions
impl Clone for Permissions
sourcefn clone(&self) -> Permissions
fn clone(&self) -> Permissions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Permissions
impl Debug for Permissions
sourceimpl Default for Permissions
impl Default for Permissions
sourcefn default() -> Permissions
fn default() -> Permissions
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Permissions
impl<'de> Deserialize<'de> for Permissions
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for Permissions
Available on crate feature model
only.
impl Display for Permissions
model
only.sourceimpl Extend<Permissions> for Permissions
impl Extend<Permissions> for Permissions
sourcefn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl FromIterator<Permissions> for Permissions
impl FromIterator<Permissions> for Permissions
sourcefn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
Creates a value from an iterator. Read more
sourceimpl Hash for Permissions
impl Hash for Permissions
sourceimpl LowerHex for Permissions
impl LowerHex for Permissions
sourceimpl Not for Permissions
impl Not for Permissions
type Output = Permissions
type Output = Permissions
The resulting type after applying the !
operator.
sourceimpl Octal for Permissions
impl Octal for Permissions
sourceimpl Ord for Permissions
impl Ord for Permissions
sourceimpl PartialEq<Permissions> for Permissions
impl PartialEq<Permissions> for Permissions
sourcefn eq(&self, other: &Permissions) -> bool
fn eq(&self, other: &Permissions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Permissions) -> bool
fn ne(&self, other: &Permissions) -> bool
This method tests for !=
.
sourceimpl PartialOrd<Permissions> for Permissions
impl PartialOrd<Permissions> for Permissions
sourcefn partial_cmp(&self, other: &Permissions) -> Option<Ordering>
fn partial_cmp(&self, other: &Permissions) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for Permissions
impl Serialize for Permissions
sourceimpl Sub<Permissions> for Permissions
impl Sub<Permissions> for Permissions
type Output = Permissions
type Output = Permissions
The resulting type after applying the -
operator.
sourceimpl SubAssign<Permissions> for Permissions
impl SubAssign<Permissions> for Permissions
sourcefn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Disables all flags enabled in the set.
sourceimpl UpperHex for Permissions
impl UpperHex for Permissions
impl Copy for Permissions
impl Eq for Permissions
impl StructuralEq for Permissions
impl StructuralPartialEq for Permissions
Auto Trait Implementations
impl RefUnwindSafe for Permissions
impl Send for Permissions
impl Sync for Permissions
impl Unpin for Permissions
impl UnwindSafe for Permissions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more