Struct aether_lib::link::sendthread::SendThread
source · [−]pub struct SendThread { /* private fields */ }
Implementations
sourceimpl SendThread
impl SendThread
pub fn new(
socket: Arc<UdpSocket>,
peer_addr: SocketAddr,
primary_queue: Receiver<Packet>,
stop_flag: Arc<Mutex<bool>>,
ack_check: Arc<Mutex<AcknowledgementCheck>>,
ack_list: Arc<Mutex<AcknowledgementList>>,
send_seq: Arc<Mutex<u32>>,
is_empty: Arc<Mutex<bool>>,
config: Config
) -> SendThread
pub fn start(&mut self)
pub fn is_empty(&self) -> bool
pub fn ack_packet(&self) -> Packet
pub fn fetch_window(&mut self)
pub fn check_ack(&self, packet: &Packet) -> bool
pub fn add_ack(&self, packet: &mut Packet)
pub fn send(&mut self, packet: Packet)
Auto Trait Implementations
impl RefUnwindSafe for SendThread
impl Send for SendThread
impl Sync for SendThread
impl Unpin for SendThread
impl UnwindSafe for SendThread
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