pub struct Candidate(/* private fields */);Expand description
A crate::Candidate builder.
Implementations§
Source§impl Candidate
impl Candidate
pub fn new( foundation: impl ToString, component_id: u32, transport: impl ToString, priority: u64, address: CandidateAddress, port: u16, typ: CandidateType, ) -> Self
pub fn rel_addr(self, rel_addr: impl Into<IpAddr>) -> Self
pub fn rel_addr_if(self, rel_addr: impl Into<IpAddr>, predicate: bool) -> Self
pub fn rel_addr_if_some(self, rel_addr: Option<impl Into<IpAddr>>) -> Self
pub fn rel_port(self, rel_port: u16) -> Self
pub fn rel_port_if(self, rel_port: u16, predicate: bool) -> Self
pub fn rel_port_if_some(self, rel_port: Option<u16>) -> Self
pub fn extension(self, name: impl ToString, value: impl ToString) -> Self
pub fn extension_if( self, name: impl ToString, value: impl ToString, predicate: bool, ) -> Self
pub fn extension_if_some( self, name_value: Option<(impl ToString, impl ToString)>, ) -> Self
pub fn build(self) -> Candidate
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Candidate
impl RefUnwindSafe for Candidate
impl Send for Candidate
impl Sync for Candidate
impl Unpin for Candidate
impl UnsafeUnpin for Candidate
impl UnwindSafe for Candidate
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