InterceptIndicator

Trait InterceptIndicator 

Source
pub trait InterceptIndicator {
    // Required method
    fn get_habbo_header_id(
        &self,
        direction: HDirection,
        packet_info_manager: &mut PacketInfoManager,
    ) -> Option<i16>;

    // Provided methods
    fn matches_habbo_header_id(
        &self,
        direction: HDirection,
        packet_info_manager: &mut PacketInfoManager,
        header_id: i16,
    ) -> bool { ... }
    fn is_raw_habbo_header_id() -> bool { ... }
    fn get_habbo_header_name(&self) -> String { ... }
}

Required Methods§

Source

fn get_habbo_header_id( &self, direction: HDirection, packet_info_manager: &mut PacketInfoManager, ) -> Option<i16>

Provided Methods§

Source

fn matches_habbo_header_id( &self, direction: HDirection, packet_info_manager: &mut PacketInfoManager, header_id: i16, ) -> bool

Source

fn is_raw_habbo_header_id() -> bool

Source

fn get_habbo_header_name(&self) -> String

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 InterceptIndicator for &str

Source§

fn get_habbo_header_id( &self, direction: HDirection, packet_info_manager: &mut PacketInfoManager, ) -> Option<i16>

Source§

fn get_habbo_header_name(&self) -> String

Source§

impl InterceptIndicator for i32

Source§

fn get_habbo_header_id( &self, _direction: HDirection, _packet_info_manager: &mut PacketInfoManager, ) -> Option<i16>

Source§

fn is_raw_habbo_header_id() -> bool

Source§

impl InterceptIndicator for String

Source§

fn get_habbo_header_id( &self, direction: HDirection, packet_info_manager: &mut PacketInfoManager, ) -> Option<i16>

Source§

fn get_habbo_header_name(&self) -> String

Implementors§