pub struct ComponentIngress { /* private fields */ }Expand description
I/O-free ingress and key-installation gate for one browser component.
Implementations§
Source§impl ComponentIngress
impl ComponentIngress
Sourcepub fn nominate(
&mut self,
selected: SelectedComponent,
) -> Result<(), ComponentError>
pub fn nominate( &mut self, selected: SelectedComponent, ) -> Result<(), ComponentError>
Freeze the pair selected by ICE for this generation.
Sourcepub fn begin_dtls(&mut self, peer: SocketAddr) -> Result<(), ComponentError>
pub fn begin_dtls(&mut self, peer: SocketAddr) -> Result<(), ComponentError>
Admit DTLS records from the nominated peer.
Sourcepub fn install_verified_keys(
&mut self,
keys: VerifiedKeys,
) -> Result<(), ComponentError>
pub fn install_verified_keys( &mut self, keys: VerifiedKeys, ) -> Result<(), ComponentError>
Atomically install both directions from a fingerprint-verified DTLS result.
Sourcepub fn start_media(&mut self) -> Result<SrtpKeys, ComponentError>
pub fn start_media(&mut self) -> Result<SrtpKeys, ComponentError>
Enable protected delivery and move the directional master material into the media session.
Sourcepub fn admit(
&mut self,
source: SocketAddr,
datagram: &[u8],
) -> IngressDisposition
pub fn admit( &mut self, source: SocketAddr, datagram: &[u8], ) -> IngressDisposition
Classify and apply the nominated-peer/key-state boundary, counting one refusal on failure.
Sourcepub fn close(&mut self)
pub fn close(&mut self)
Refuse future admissions and erase any key material not moved into a session.
Sourcepub const fn snapshot(&self) -> BrowserComponentSnapshot
pub const fn snapshot(&self) -> BrowserComponentSnapshot
Current low-cardinality diagnostic facts. No key material is exposed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ComponentIngress
impl RefUnwindSafe for ComponentIngress
impl Send for ComponentIngress
impl Sync for ComponentIngress
impl Unpin for ComponentIngress
impl UnsafeUnpin for ComponentIngress
impl UnwindSafe for ComponentIngress
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
§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>
Converts
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>
Converts
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