pub struct IronChannelHandler;Expand description
Handle channel access control for Legion Protocol
Implementationsยง
Sourceยงimpl IronChannelHandler
impl IronChannelHandler
Sourcepub fn can_join_channel(
channel: &str,
user_has_legion: bool,
server_has_legion: bool,
) -> Result<ChannelJoinResult>
pub fn can_join_channel( channel: &str, user_has_legion: bool, server_has_legion: bool, ) -> Result<ChannelJoinResult>
Check if a user can join a channel based on Legion Protocol capabilities
Sourcepub fn generate_error_message(channel: &str, error: &IronChannelError) -> String
pub fn generate_error_message(channel: &str, error: &IronChannelError) -> String
Generate appropriate error message for IRC users trying to join Legion channels
Auto Trait Implementationsยง
impl Freeze for IronChannelHandler
impl RefUnwindSafe for IronChannelHandler
impl Send for IronChannelHandler
impl Sync for IronChannelHandler
impl Unpin for IronChannelHandler
impl UnsafeUnpin for IronChannelHandler
impl UnwindSafe for IronChannelHandler
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