pub struct SessionGrant {
pub session_id: SessionId,
pub session_name: Option<SessionName>,
pub task_id: Option<String>,
pub endpoint: SessionEndpointUrl,
pub token: SessionToken,
pub slots: SlotRange,
}Expand description
Everything a client needs to reach one endpoint session.
Fields§
§session_id: SessionIdKeep it to attach again.
session_name: Option<SessionName>The parallel run’s name, for a session in one.
task_id: Option<String>Quote it when reporting a problem.
endpoint: SessionEndpointUrlThe name can take a few seconds to resolve after the grant; retry a failed lookup.
token: SessionTokenAdmits the client to Self::endpoint.
slots: SlotRangeThe slots the session replays.
Implementations§
Source§impl SessionGrant
impl SessionGrant
Sourcepub fn control_url(&self) -> String
pub fn control_url(&self) -> String
ws(s)://<host>/backtest/<its own id>/control: the session’s control socket.
Sourcepub fn rpc_url_with_token(&self) -> String
pub fn rpc_url_with_token(&self) -> String
Self::rpc_url with the token in the query, for a client that cannot set a header.
Trait Implementations§
Source§impl Clone for SessionGrant
impl Clone for SessionGrant
Source§impl Debug for SessionGrant
impl Debug for SessionGrant
Source§impl<'de> Deserialize<'de> for SessionGrant
impl<'de> Deserialize<'de> for SessionGrant
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for SessionGrant
impl Freeze for SessionGrant
impl Move for SessionGrant
impl RefUnwindSafe for SessionGrant
impl Send for SessionGrantwhere
RawVecInner: Send,
impl Sync for SessionGrantwhere
RawVecInner: Sync,
impl Unpin for SessionGrant
impl UnsafeUnpin for SessionGrant
impl UnwindSafe for SessionGrantwhere
RawVecInner: UnwindSafe,
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