Enum srt_protocol::connection::Action
source · pub enum Action<'a> {
ReleaseData((Instant, Bytes)),
SendPacket((Packet, SocketAddr)),
UpdateStatistics(&'a SocketStatistics),
WaitForData(Duration),
Close,
}
Variants§
ReleaseData((Instant, Bytes))
SendPacket((Packet, SocketAddr))
UpdateStatistics(&'a SocketStatistics)
WaitForData(Duration)
Close
Trait Implementations§
source§impl<'a> PartialEq<Action<'a>> for Action<'a>
impl<'a> PartialEq<Action<'a>> for Action<'a>
impl<'a> Eq for Action<'a>
impl<'a> StructuralEq for Action<'a>
impl<'a> StructuralPartialEq for Action<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Action<'a>
impl<'a> Send for Action<'a>
impl<'a> Sync for Action<'a>
impl<'a> Unpin for Action<'a>
impl<'a> UnwindSafe for Action<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.