pub struct WsService { /* private fields */ }Implementations§
Source§impl WsService
impl WsService
pub fn get_url(&self) -> Url
pub async fn connect( url: impl ToString, ) -> Result<WebSocketStream<MaybeTlsStream<TcpStream>>, Error>
pub async fn send_processor( send_side: SplitSink<WebSocketStream<MaybeTlsStream<TcpStream>>, Message>, api_receiver: APIReceiver, close_signal: Receiver<()>, ) -> Result<()>
pub async fn read_processor( read_side: SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>, event_sender: EventSender, close_signal: Receiver<()>, ) -> Result<()>
Trait Implementations§
Source§impl CommunicationService for WsService
impl CommunicationService for WsService
fn inject(&mut self, api_receiver: APIReceiver, event_sender: EventSender)
fn start_service<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceStartResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for WsService
impl !RefUnwindSafe for WsService
impl Send for WsService
impl Sync for WsService
impl Unpin for WsService
impl UnsafeUnpin for WsService
impl !UnwindSafe for WsService
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