pub struct StreamConnect { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for StreamConnect
impl Clone for StreamConnect
Source§fn clone(&self) -> StreamConnect
fn clone(&self) -> StreamConnect
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Service for StreamConnect
impl Service for StreamConnect
Source§async fn subscribe(
&self,
ctx: Context,
request: OwnedView<SubscribeRequestView<'static>>,
) -> Result<(Pin<Box<dyn Stream<Item = Result<SubscribeResponse, ConnectError>> + Send>>, Context), ConnectError>
async fn subscribe( &self, ctx: Context, request: OwnedView<SubscribeRequestView<'static>>, ) -> Result<(Pin<Box<dyn Stream<Item = Result<SubscribeResponse, ConnectError>> + Send>>, Context), ConnectError>
Handle the Subscribe RPC.
Source§async fn get(
&self,
ctx: Context,
request: OwnedView<GetRequestView<'static>>,
) -> Result<(StreamGetResponse, Context), ConnectError>
async fn get( &self, ctx: Context, request: OwnedView<GetRequestView<'static>>, ) -> Result<(StreamGetResponse, Context), ConnectError>
Handle the Get RPC.
Auto Trait Implementations§
impl Freeze for StreamConnect
impl !RefUnwindSafe for StreamConnect
impl Send for StreamConnect
impl Sync for StreamConnect
impl Unpin for StreamConnect
impl UnsafeUnpin for StreamConnect
impl !UnwindSafe for StreamConnect
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