Skip to main content

ChannelIdExt

Trait ChannelIdExt 

Source
pub trait ChannelIdExt {
    // Required methods
    fn channel<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ctx: &'life1 (impl 'async_trait + CacheHttp),
    ) -> Pin<Box<dyn Future<Output = Result<Channel>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn server_id<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ctx: &'life1 (impl 'async_trait + CacheHttp),
    ) -> Pin<Box<dyn Future<Output = Result<Option<ServerId>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn server<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ctx: &'life1 (impl 'async_trait + CacheHttp),
    ) -> Pin<Box<dyn Future<Output = Result<Option<Server>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn send_message<'life0, 'life1, 'async_trait, F>(
        &'life0 self,
        ctx: &'life1 (impl 'async_trait + HasHttp),
        message: F,
    ) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>>
       where F: for<'a> FnOnce(&'a mut CreateMessage) -> &'a CreateMessage + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn start_typing(&self, ctx: &impl AsRefContext) -> TypingSession;
}

Required Methods§

Source

fn channel<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 (impl 'async_trait + CacheHttp), ) -> Pin<Box<dyn Future<Output = Result<Channel>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn server_id<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 (impl 'async_trait + CacheHttp), ) -> Pin<Box<dyn Future<Output = Result<Option<ServerId>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn server<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 (impl 'async_trait + CacheHttp), ) -> Pin<Box<dyn Future<Output = Result<Option<Server>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn send_message<'life0, 'life1, 'async_trait, F>( &'life0 self, ctx: &'life1 (impl 'async_trait + HasHttp), message: F, ) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>>
where F: for<'a> FnOnce(&'a mut CreateMessage) -> &'a CreateMessage + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn start_typing(&self, ctx: &impl AsRefContext) -> TypingSession

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ChannelIdExt for ChannelId

Source§

fn channel<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 (impl 'async_trait + CacheHttp), ) -> Pin<Box<dyn Future<Output = Result<Channel>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn server_id<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 (impl 'async_trait + CacheHttp), ) -> Pin<Box<dyn Future<Output = Result<Option<ServerId>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn server<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 (impl 'async_trait + CacheHttp), ) -> Pin<Box<dyn Future<Output = Result<Option<Server>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn send_message<'life0, 'life1, 'async_trait, F>( &'life0 self, http: &'life1 (impl 'async_trait + HasHttp), message: F, ) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>>
where F: for<'a> FnOnce(&'a mut CreateMessage) -> &'a CreateMessage + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn start_typing(&self, ctx: &impl AsRefContext) -> TypingSession

Implementors§