pub enum ChannelReach {
Shared,
Public,
DirectOnly,
}Expand description
Which conversations a tool may be offered in (see
ToolDispatchFacts::channel_reach).
Variants§
Any conversation except a public external channel.
Public
Every conversation, a public external channel included.
DirectOnly
It drives the owner’s machine: only direct messages and internal sessions, never a shared or public channel.
Implementations§
Source§impl ChannelReach
impl ChannelReach
Sourcepub fn offered_in(self, visibility: ChannelVisibility) -> bool
pub fn offered_in(self, visibility: ChannelVisibility) -> bool
Whether a tool of this reach may be offered in a conversation of
visibility. The one rule for which tools a channel may see.
Trait Implementations§
Source§impl Clone for ChannelReach
impl Clone for ChannelReach
Source§fn clone(&self) -> ChannelReach
fn clone(&self) -> ChannelReach
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChannelReach
Source§impl Debug for ChannelReach
impl Debug for ChannelReach
Source§impl Default for ChannelReach
impl Default for ChannelReach
Source§fn default() -> ChannelReach
fn default() -> ChannelReach
Returns the “default value” for a type. Read more
impl Eq for ChannelReach
Source§impl PartialEq for ChannelReach
impl PartialEq for ChannelReach
impl StructuralPartialEq for ChannelReach
Auto Trait Implementations§
impl Forget for ChannelReach
impl Freeze for ChannelReach
impl Move for ChannelReach
impl RefUnwindSafe for ChannelReach
impl Send for ChannelReach
impl Sync for ChannelReach
impl Unpin for ChannelReach
impl UnsafeUnpin for ChannelReach
impl UnwindSafe for ChannelReach
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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