pub struct Handle { /* private fields */ }Expand description
Outbound side. Cheap to clone; safe to call from any task.
Implementations§
Source§impl Handle
impl Handle
Sourcepub async fn announce(&self, a: Announce)
pub async fn announce(&self, a: Announce)
Set the current announce; sent now if connected and again after every reconnect.
pub async fn set_sessions(&self, ids: Vec<String>)
pub async fn set_status(&self, status: Option<Value>)
pub fn session_accepted(&self, session_id: &str, path_label: &str)
pub fn session_ended(&self, session_id: &str, reason: &str)
pub fn is_connected(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Handle
impl !UnwindSafe for Handle
impl Freeze for Handle
impl Send for Handle
impl Sync for Handle
impl Unpin for Handle
impl UnsafeUnpin for Handle
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