pub struct NullHandler;
Trait Implementations§
Source§impl MessageHandler for NullHandler
impl MessageHandler for NullHandler
type Output = ()
fn does_handle(_message_type: MessageType) -> bool
fn into_output(self, _state: &ParserState) -> Self::Output
fn handle_header(&mut self, _header: &Header)
fn handle_message( &mut self, _message: &Message<'_>, _tick: DemoTick, _parser_state: &ParserState, )
fn handle_string_entry( &mut self, _table: &str, _index: usize, _entries: &StringTableEntry<'_>, _parser_state: &ParserState, )
fn handle_data_tables( &mut self, _tables: &[ParseSendTable], _server_classes: &[ServerClass], _parser_state: &ParserState, )
fn handle_packet_meta( &mut self, _tick: DemoTick, _meta: &MessagePacketMeta, _parser_state: &ParserState, )
Auto Trait Implementations§
impl Freeze for NullHandler
impl RefUnwindSafe for NullHandler
impl Send for NullHandler
impl Sync for NullHandler
impl Unpin for NullHandler
impl UnwindSafe for NullHandler
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more