[][src]Struct signalr_rs::hub::client::HubClient

pub struct HubClient {
    pub cookies: String,
    // some fields omitted
}

Fields

cookies: String

Methods

impl HubClient[src]

pub async fn new<'_>(
    hub: &'static str,
    wss_url: &'_ str,
    query_backoff: u64,
    restart_policy: RestartPolicy,
    handler: Box<dyn HubClientHandler>
) -> Result<Addr<HubClient>, HubClientError>
[src]

Trait Implementations

impl Actor for HubClient[src]

type Context = Context<Self>

Actor execution context type

impl<'de, T> Handler<HubQuery<T>> for HubClient where
    T: Deserialize<'de> + Serialize + 'static, 
[src]

type Result = ()

The type of value that this handler will return.

impl StreamHandler<Result<Frame, ProtocolError>> for HubClient[src]

impl Supervised for HubClient[src]

Upon disconnection of the ws client, recreate the ws client

impl WriteHandler<ProtocolError> for HubClient[src]

Auto Trait Implementations

impl !RefUnwindSafe for HubClient

impl !Send for HubClient

impl !Sync for HubClient

impl Unpin for HubClient

impl !UnwindSafe for HubClient

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,