Struct naia_shared::ReliableSender
source · [−]Implementations
sourceimpl<P: Send + Sync> ReliableSender<P>
impl<P: Send + Sync> ReliableSender<P>
pub fn new(rtt_resend_factor: f32) -> Self
pub fn cleanup_sent_messages(&mut self)
pub fn take_next_messages(&mut self) -> VecDeque<(MessageId, P)>
pub fn deliver_message(&mut self, message_id: &MessageId) -> Option<P>
Trait Implementations
sourceimpl<P: Clone + Send + Sync> ChannelSender<P> for ReliableSender<P>
impl<P: Clone + Send + Sync> ChannelSender<P> for ReliableSender<P>
fn send_message(&mut self, message: P)
fn collect_messages(&mut self, now: &Instant, rtt_millis: &f32)
fn has_messages(&self) -> bool
fn write_messages(
&mut self,
channel_writer: &dyn ChannelWriter<P>,
bit_writer: &mut BitWriter
) -> Option<Vec<MessageId>>
fn notify_message_delivered(&mut self, message_id: &MessageId)
Auto Trait Implementations
impl<P> RefUnwindSafe for ReliableSender<P> where
P: RefUnwindSafe,
impl<P> Send for ReliableSender<P>
impl<P> Sync for ReliableSender<P>
impl<P> Unpin for ReliableSender<P> where
P: Unpin,
impl<P> UnwindSafe for ReliableSender<P> where
P: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more