Struct webrtc_ice::candidate::candidate_base::CandidateBase

source ·
pub struct CandidateBase { /* private fields */ }

Implementations§

source§

impl CandidateBase

source

pub fn set_last_received(&self, d: Duration)

source

pub fn set_last_sent(&self, d: Duration)

source

pub fn local_preference(&self) -> u16

Returns the local preference for this candidate.

Trait Implementations§

source§

impl Candidate for CandidateBase

source§

fn id(&self) -> String

Returns Candidate ID.

source§

fn component(&self) -> u16

Returns candidate component.

source§

fn last_received(&self) -> SystemTime

Returns a time indicating the last time this candidate was received.

source§

fn last_sent(&self) -> SystemTime

Returns a time indicating the last time this candidate was sent.

source§

fn network_type(&self) -> NetworkType

Returns candidate NetworkType.

source§

fn address(&self) -> String

Returns Candidate Address.

source§

fn port(&self) -> u16

Returns Candidate Port.

source§

fn priority(&self) -> u32

Computes the priority for this ICE Candidate.

source§

fn related_address(&self) -> Option<CandidateRelatedAddress>

Returns Option<CandidateRelatedAddress>.

source§

fn candidate_type(&self) -> CandidateType

Returns candidate type.

source§

fn marshal(&self) -> String

Returns the string representation of the ICECandidate.

source§

fn close<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Stops the recvLoop.

source§

fn equal(&self, other: &dyn Candidate) -> bool

Used to compare two candidateBases.

source§

fn foundation(&self) -> String

An arbitrary string used in the freezing algorithm to group similar candidates. It is the same for two candidates that have the same type, base IP address, protocol (UDP, TCP, etc.), and STUN or TURN server.
source§

fn set_component(&self, component: u16)

source§

fn tcp_type(&self) -> TcpType

source§

fn addr(&self) -> SocketAddr

source§

fn seen(&self, outbound: bool)

source§

fn write_to<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, raw: &'life1 [u8], dst: &'life2 (dyn Candidate + Send + Sync) ) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source§

fn set_ip(&self, ip: &IpAddr) -> Result<(), Error>

source§

fn get_conn(&self) -> Option<&Arc<dyn Conn + Send + Sync>>

source§

fn get_closed_ch(&self) -> Arc<Mutex<Option<Sender<()>>>>

source§

impl Default for CandidateBase

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Display for CandidateBase

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V