pub struct Relay { /* private fields */ }
Implementations§
Source§impl Relay
impl Relay
pub fn new() -> Arc<Mutex<Self>>
pub fn set_bind_address(&mut self, address: String)
pub async fn setup<F>( &mut self, streamer_url: String, password: String, relay_id: String, name: String, on_status_updated: F, get_status: GetStatusClosure, )
pub fn is_started(&self) -> bool
pub async fn start(&mut self)
pub async fn stop(&mut self)
Auto Trait Implementations§
impl !Freeze for Relay
impl !RefUnwindSafe for Relay
impl Send for Relay
impl Sync for Relay
impl Unpin for Relay
impl !UnwindSafe for Relay
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