pub struct ProtocolCoreHandle { /* private fields */ }Implementations§
Source§impl ProtocolCoreHandle
impl ProtocolCoreHandle
pub fn spawn( core: ProtocolCore, executor: Arc<dyn EffectExecutor>, cancellation: CancellationToken, runtime: &RuntimeHandle, ) -> Self
pub fn claim_body(&self, session: &SessionId, token: &str) -> Option<WireBody>
pub fn claim_body_stream( &self, session: &SessionId, token: &str, ) -> Option<BodyStream>
pub fn register_body( &self, session: &SessionId, body: WireBody, ) -> Result<BodyId, CoreError>
pub async fn submit(&self, input: CoreInput) -> Result<(), WsError>
pub async fn submit_batch(&self, inputs: Vec<CoreInput>) -> Result<(), WsError>
pub async fn install<F>( &self, input: CoreInput, publish: F, ) -> Result<(), WsError>
pub async fn attach<H: SessionHandler>( &self, session: SessionId, transport: Pipe, expected_peer: Option<String>, handler: H, ) -> Result<Arc<Wire>, WsError>
pub async fn attach_with_ceiling<H: SessionHandler>( &self, session: SessionId, transport: Pipe, expected_peer: Option<String>, handler: H, ws_collect_ceiling: usize, ) -> Result<Arc<Wire>, WsError>
pub fn shutdown(&self)
Trait Implementations§
Source§impl Clone for ProtocolCoreHandle
impl Clone for ProtocolCoreHandle
Source§fn clone(&self) -> ProtocolCoreHandle
fn clone(&self) -> ProtocolCoreHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProtocolCoreHandle
impl RefUnwindSafe for ProtocolCoreHandle
impl Send for ProtocolCoreHandle
impl Sync for ProtocolCoreHandle
impl Unpin for ProtocolCoreHandle
impl UnsafeUnpin for ProtocolCoreHandle
impl UnwindSafe for ProtocolCoreHandle
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