pub struct WebRTCConnectionSetup {
pub rp_conn: RtcPeerConnection,
/* private fields */
}Fields§
§rp_conn: RtcPeerConnectionImplementations§
Source§impl WebRTCConnectionSetup
impl WebRTCConnectionSetup
pub async fn new( broker: Broker<WebRTCMessage>, ) -> Result<WebRTCConnectionSetup, SetupError>
pub fn create_rp_conn() -> Result<RtcPeerConnection, SetupError>
pub fn reset(&mut self) -> Result<(), SetupError>
pub fn ice_start(rp_conn: &RtcPeerConnection, broker: Broker<WebRTCMessage>)
pub async fn make_offer(&mut self) -> Result<String, SetupError>
pub async fn make_answer(&mut self, offer: String) -> Result<String, SetupError>
pub async fn use_answer(&mut self, answer: String) -> Result<(), SetupError>
pub async fn ice_put(&mut self, ice: String) -> Result<(), SetupError>
pub async fn send(&mut self, msg: String) -> Result<(), SetupError>
pub async fn send_queue(&mut self) -> Result<(), SetupError>
pub async fn get_state(&self) -> Result<ConnectionStateMap, SetupError>
Auto Trait Implementations§
impl Freeze for WebRTCConnectionSetup
impl !RefUnwindSafe for WebRTCConnectionSetup
impl !Send for WebRTCConnectionSetup
impl !Sync for WebRTCConnectionSetup
impl Unpin for WebRTCConnectionSetup
impl UnsafeUnpin for WebRTCConnectionSetup
impl !UnwindSafe for WebRTCConnectionSetup
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
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