[−][src]Struct medea_jason::rpc::RpcClient
Methods
impl RpcClient
[src]
pub fn new(token: String, ping_interval: i32) -> Self
[src]
pub fn init(&mut self) -> impl Future<Item = (), Error = WasmErr>
[src]
Creates new WebSocket connection to remote media server.
Starts Heartbeat
if connection succeeds and binds handlers
on receiving messages from server and closing socket.
pub fn subscribe(&self) -> impl Stream<Item = Event, Error = ()>
[src]
Returns Stream of all Events received by this RpcClient
.
pub fn unsub(&self)
[src]
Unsubscribe from this RpcClient
. Drops all subscriptions atm.
pub fn send_command(&self, command: Command)
[src]
Sends Command to Medea.
Trait Implementations
Auto Trait Implementations
impl Unpin for RpcClient
impl !Sync for RpcClient
impl !Send for RpcClient
impl !UnwindSafe for RpcClient
impl !RefUnwindSafe for RpcClient
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,