pub enum AgentPoll {
Closed,
WaitUntilMicros(u64),
AllocateSocket(AgentSocket),
RemoveSocket(AgentSocket),
SelectedPair(AgentSelectedPair),
ComponentStateChange(AgentComponentStateChange),
GatheredCandidate(AgentGatheredCandidate),
GatheringComplete(AgentGatheringComplete),
}Expand description
Indicates what the caller should do after calling Agent::poll
Variants§
Closed
The Agent is closed. No further progress will be made.
WaitUntilMicros(u64)
Wait until the specified Instant has been reached (or an external event)
AllocateSocket(AgentSocket)
Connect from the specified interface to the specified address. Reply (success or failure)
should be notified using Stream::allocated_socket with the same parameters.
RemoveSocket(AgentSocket)
It is posible to remove the specified 5-tuple. The socket will not be referenced any further.
SelectedPair(AgentSelectedPair)
A new pair has been selected for a component.
ComponentStateChange(AgentComponentStateChange)
A Component has changed state.
GatheredCandidate(AgentGatheredCandidate)
A Component has gathered a candidate.
GatheringComplete(AgentGatheringComplete)
A Component has completed gathering.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentPoll
impl RefUnwindSafe for AgentPoll
impl !Send for AgentPoll
impl !Sync for AgentPoll
impl Unpin for AgentPoll
impl UnwindSafe for AgentPoll
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