pub trait SessionsReceiver:
Send
+ Sync
+ 'static {
// Required methods
fn session(
&self,
owner: PartyRef,
session_id: String,
context: RequestContext,
) -> impl Future<Output = Handled<Session>> + Send;
fn put_session(
&self,
owner: PartyRef,
session: Session,
context: RequestContext,
) -> impl Future<Output = Handled<Created>> + Send;
fn patch_session(
&self,
owner: PartyRef,
session_id: String,
patch: Patch<Session>,
context: RequestContext,
) -> impl Future<Output = Handled<()>> + Send;
}Available on crate feature
server only.Expand description
The eMSP side of the Sessions module.
Spec: 2.3.0 §mod_sessions_emsp_interface
Required Methods§
Sourcefn session(
&self,
owner: PartyRef,
session_id: String,
context: RequestContext,
) -> impl Future<Output = Handled<Session>> + Send
fn session( &self, owner: PartyRef, session_id: String, context: RequestContext, ) -> impl Future<Output = Handled<Session>> + Send
GET {sessions}/{cc}/{party}/{session_id}.
Sourcefn put_session(
&self,
owner: PartyRef,
session: Session,
context: RequestContext,
) -> impl Future<Output = Handled<Created>> + Send
fn put_session( &self, owner: PartyRef, session: Session, context: RequestContext, ) -> impl Future<Output = Handled<Created>> + Send
PUT {sessions}/{cc}/{party}/{session_id}.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl SessionsReceiver for MockPeer
Available on crate feature
testkit only.