pub fn send_ban_reason(&self, ban_reason: ReasonForBan) {
		let ban_reason_msg = BanReason { ban_reason };
		match self
			.connection
			.as_ref()
			.unwrap()
			.send(ban_reason_msg, msg::Type::BanReason)
		{
			Ok(_) => debug!(
				LOGGER,
				"Sent ban reason {:?} to {}", ban_reason, self.info.addr
			),
			Err(e) => error!(
				LOGGER,
				"Could not send ban reason {:?} to {}: {:?}", ban_reason, self.info.addr, e
			),
		};
	}
/// Send the ban reason before banning
Send the ban reason before banning
Send the ban reason before banning
pub fn send_ban_reason(&self, ban_reason: ReasonForBan) {
		let ban_reason_msg = BanReason { ban_reason };
		match self
			.connection
			.as_ref()
			.unwrap()
			.send(ban_reason_msg, msg::Type::BanReason)
		{
			Ok(_) => debug!(
				LOGGER,
				"Sent ban reason {:?} to {}", ban_reason, self.info.addr
			),
			Err(e) => error!(
				LOGGER,
				"Could not send ban reason {:?} to {}: {:?}", ban_reason, self.info.addr, e
			),
		};
	}
pub fn send_ban_reason ( & self , ban_reason : ReasonForBan ) { let ban_reason_msg = BanReason { ban_reason } ; match self . connection . as_ref ( ) . unwrap ( ) . send ( ban_reason_msg , msg :: Type :: BanReason ) { Ok ( _ ) => debug ! ( LOGGER " " ban_reason self info addr ) , Err ( e ) => error ! ( LOGGER " " ban_reason self info addr e ) , } ; }
Send the ban reason before banning
Send the ban reason before banning
&self
ban_reason
ReasonForBan