pub enum Input {
RemoteDescription {
credentials: Credentials,
candidates: Vec<Candidate>,
lite: bool,
},
LocalCredentials {
credentials: Credentials,
tiebreaker: u64,
},
LocalCandidate(Gathered),
GatheringDone,
Datagram {
from: SocketAddr,
on: LocalBase,
bytes: Vec<u8>,
},
DataSent {
component: ComponentId,
},
TimerFired(Timer),
}Expand description
Something that happened.
Variants§
RemoteDescription
The far end’s ICE parameters, from an offer or an answer.
Fields
credentials: CredentialsIts a=ice-ufrag and a=ice-pwd (RFC 8839 §5.4).
LocalCredentials
The local half of the ICE session a restart is about to begin (spec §13.5).
Applied before the Self::RemoteDescription that carries the restart, because the
answer to a restart has to name these rather than the credentials the old session keyed its
checks with. Setting them is not itself a restart: nothing is rebuilt until a description
arrives whose ice-ufrag and ice-pwd have both changed (RFC 8839 §4.4.1.1.1), so an
offerer can announce its new parameters and still be answered by a peer that declines.
Fields
credentials: CredentialsOur a=ice-ufrag and a=ice-pwd for the new session (RFC 8839 §5.4).
LocalCandidate(Gathered)
A local candidate the driver gathered.
GatheringDone
Gathering will produce nothing further.
Datagram
A datagram crate::dtls::classify called STUN, and where it came from.
Fields
from: SocketAddrIts source address.
DataSent
Media went out on a selected pair; resets that pair’s keepalive timer (§11).
Fields
component: ComponentIdWhich component’s selected pair carried it.
TimerFired(Timer)
A timer fired.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnsafeUnpin for Input
impl UnwindSafe for Input
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more