pub struct Client<A, T>where
A: Attribute,
T: StunTransport<A>,{ /* private fields */ }
Expand description
STUN client.
Implementations§
source§impl<A, T> Client<A, T>
impl<A, T> Client<A, T>
sourcepub fn new<S>(spawner: &S, channel: Channel<A, T>) -> Self
pub fn new<S>(spawner: &S, channel: Channel<A, T>) -> Self
Makes a new Client
instance that uses the given channel for sending/receiving messages.
Trait Implementations§
Auto Trait Implementations§
impl<A, T> RefUnwindSafe for Client<A, T>where
T: RefUnwindSafe,
impl<A, T> Send for Client<A, T>
impl<A, T> Sync for Client<A, T>
impl<A, T> Unpin for Client<A, T>where
T: Unpin,
impl<A, T> UnwindSafe for Client<A, T>where
T: UnwindSafe,
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