Skip to main content

RestrictionAPI

Trait RestrictionAPI 

Source
pub trait RestrictionAPI: BaseClient {
    // Required methods
    fn add_restraction(
        &self,
        target: &ChannelId,
    ) -> impl Future<Output = Result<(), Error>> + Send;
    fn remove_restriction(
        &self,
        target: &ChannelId,
    ) -> impl Future<Output = Result<(), Error>> + Send;
    fn get_restrictions<'a>(&'a self) -> GetRestriction<'a>;
}

Required Methods§

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.

Implementors§