pub struct SidecarSession<'a> { /* private fields */ }Expand description
One stdio connection as seen by a host’s session setup: a SidecarSessionSetup receives it
once a sidecar child has started and passed describe validation, and calls
SidecarSession::invoke to re-establish whatever session the host had built on the previous
connection.
Implementations§
Source§impl SidecarSession<'_>
impl SidecarSession<'_>
Sourcepub fn invoke(
&self,
contract: &str,
method: &str,
payload: &[u8],
) -> Result<Vec<u8>, ComponentError>
pub fn invoke( &self, contract: &str, method: &str, payload: &[u8], ) -> Result<Vec<u8>, ComponentError>
Invoke a bytes-only method on the connection’s component, as
crate::LoadedComponent::invoke_bytes does.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SidecarSession<'a>
impl<'a> !UnwindSafe for SidecarSession<'a>
impl<'a> Forget for SidecarSession<'a>
impl<'a> Freeze for SidecarSession<'a>
impl<'a> Send for SidecarSession<'a>
impl<'a> Sync for SidecarSession<'a>
impl<'a> Unpin for SidecarSession<'a>
impl<'a> UnsafeUnpin for SidecarSession<'a>
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