Enum srt_protocol::listener::Action
source · pub enum Action<'a> {
SendPacket((Packet, SocketAddr)),
RequestAccess(SessionId, AccessControlRequest),
RejectConnection(SessionId, Option<(Packet, SocketAddr)>),
OpenConnection(SessionId, Box<(Option<(Packet, SocketAddr)>, Connection)>),
DelegatePacket(SessionId, (Packet, SocketAddr)),
DropConnection(SessionId),
UpdateStatistics(&'a ListenerStatistics),
WaitForInput,
Close,
}Variants§
SendPacket((Packet, SocketAddr))
RequestAccess(SessionId, AccessControlRequest)
RejectConnection(SessionId, Option<(Packet, SocketAddr)>)
OpenConnection(SessionId, Box<(Option<(Packet, SocketAddr)>, Connection)>)
DelegatePacket(SessionId, (Packet, SocketAddr))
DropConnection(SessionId)
UpdateStatistics(&'a ListenerStatistics)
WaitForInput
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.