pub struct SendbirdWsSubscription { /* private fields */ }Implementations§
Source§impl SendbirdWsSubscription
impl SendbirdWsSubscription
pub fn new(commands: UnboundedSender<String>, raw: Receiver<String>) -> Self
pub fn commands(&self) -> UnboundedSender<String>
pub fn resubscribe_raw(&self) -> Receiver<String>
pub async fn recv(&mut self) -> Result<SendbirdWsEvent, HingeError>
pub async fn recv_raw(&mut self) -> Result<String, HingeError>
Auto Trait Implementations§
impl Freeze for SendbirdWsSubscription
impl RefUnwindSafe for SendbirdWsSubscription
impl Send for SendbirdWsSubscription
impl Sync for SendbirdWsSubscription
impl Unpin for SendbirdWsSubscription
impl UnsafeUnpin for SendbirdWsSubscription
impl UnwindSafe for SendbirdWsSubscription
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