pub trait JidExt {
// Required methods
fn user(&self) -> &str;
fn server(&self) -> &str;
fn device(&self) -> u16;
fn integrator(&self) -> u16;
// Provided methods
fn is_ad(&self) -> bool { ... }
fn is_interop(&self) -> bool { ... }
fn is_messenger(&self) -> bool { ... }
fn is_group(&self) -> bool { ... }
fn is_broadcast_list(&self) -> bool { ... }
fn is_bot(&self) -> bool { ... }
fn is_empty(&self) -> bool { ... }
fn is_same_user_as(&self, other: &impl JidExt) -> bool { ... }
}Required Methods§
fn user(&self) -> &str
fn server(&self) -> &str
fn device(&self) -> u16
fn integrator(&self) -> u16
Provided Methods§
fn is_ad(&self) -> bool
fn is_interop(&self) -> bool
fn is_messenger(&self) -> bool
fn is_group(&self) -> bool
fn is_broadcast_list(&self) -> bool
fn is_bot(&self) -> bool
fn is_empty(&self) -> bool
fn is_same_user_as(&self, other: &impl JidExt) -> bool
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.