pub struct Relay { /* private fields */ }
Implementations§
Source§impl Relay
impl Relay
pub fn new() -> Self
pub async fn set_bind_address(&self, address: String)
pub async fn setup<F>( &self, streamer_url: String, password: String, relay_id: Uuid, name: String, on_status_updated: F, get_status: Option<GetStatusClosure>, )
pub async fn is_started(&self) -> bool
pub async fn start(&self)
pub async fn stop(&self)
Trait Implementations§
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