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§
Sourcefn add_restraction(
&self,
target: &ChannelId,
) -> impl Future<Output = Result<(), Error>> + Send
fn add_restraction( &self, target: &ChannelId, ) -> impl Future<Output = Result<(), Error>> + Send
Sourcefn remove_restriction(
&self,
target: &ChannelId,
) -> impl Future<Output = Result<(), Error>> + Send
fn remove_restriction( &self, target: &ChannelId, ) -> impl Future<Output = Result<(), Error>> + Send
Sourcefn get_restrictions<'a>(&'a self) -> GetRestriction<'a>
fn get_restrictions<'a>(&'a self) -> GetRestriction<'a>
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.