mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-24 21:08:19 -06:00
no drop check is needed
This commit is contained in:
parent
de1f2c4b16
commit
ad811de4ca
|
@ -7,8 +7,8 @@ use crate::{BINCODE_CONFIG, packet::ClientPacket};
|
||||||
|
|
||||||
pub struct Client<S, R> where S: Encode + Decode, R: Encode + Decode {
|
pub struct Client<S, R> where S: Encode + Decode, R: Encode + Decode {
|
||||||
socket: UdpSocket,
|
socket: UdpSocket,
|
||||||
_s: PhantomData<S>,
|
_s: PhantomData<*const S>,
|
||||||
_r: PhantomData<R>,
|
_r: PhantomData<*const R>,
|
||||||
}
|
}
|
||||||
impl<S, R> Client<S, R> where S: Encode + Decode, R: Encode + Decode {
|
impl<S, R> Client<S, R> where S: Encode + Decode, R: Encode + Decode {
|
||||||
pub fn connect(addr: SocketAddr) -> anyhow::Result<Self> {
|
pub fn connect(addr: SocketAddr) -> anyhow::Result<Self> {
|
||||||
|
|
Loading…
Reference in a new issue