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
impl Copy for ChannelReach
Source§impl Debug for ChannelReach
impl Debug for ChannelReach
Source§impl Default for ChannelReach
impl Default for ChannelReach
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