Struct aether_lib::link::receivethread::ReceiveThread
source · [−]pub struct ReceiveThread { /* private fields */ }
Expand description
Data structure to group data used by the receive thread
Implementations
sourceimpl ReceiveThread
impl ReceiveThread
pub fn new(
socket: Arc<UdpSocket>,
peer_addr: SocketAddr,
receive_queue: Sender<Packet>,
stop_flag: Arc<Mutex<bool>>,
ack_check: Arc<Mutex<AcknowledgementCheck>>,
ack_list: Arc<Mutex<AcknowledgementList>>,
recv_seq: Arc<Mutex<u32>>,
config: Config
) -> ReceiveThread
pub fn start(&mut self)
Auto Trait Implementations
impl RefUnwindSafe for ReceiveThread
impl Send for ReceiveThread
impl Sync for ReceiveThread
impl Unpin for ReceiveThread
impl UnwindSafe for ReceiveThread
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more