pub struct Relay { /* private fields */ }
Implementations§
Source§impl Relay
impl Relay
pub fn new() -> 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(relay_arc: Arc<Mutex<Self>>)
pub async fn stop(relay_arc: Arc<Mutex<Self>>)
pub async fn update_settings( &mut self, relay_id: String, streamer_url: String, password: String, name: String, )
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