pub struct ChaincodeEventsRequest { /* private fields */ }Expand description
A signed request that streams chaincode events.
Implementations§
Source§impl ChaincodeEventsRequest
impl ChaincodeEventsRequest
Sourcepub async fn events(
self,
) -> Result<Pin<Box<dyn Stream<Item = ChaincodeEvent> + Send>>, GatewayError>
pub async fn events( self, ) -> Result<Pin<Box<dyn Stream<Item = ChaincodeEvent> + Send>>, GatewayError>
Open the event stream. Yields ChaincodeEvents in ledger order. A
background task reads the gRPC stream and forwards flattened events,
mirroring the goroutine in fabric-gateway-go’s Events.
Auto Trait Implementations§
impl !Freeze for ChaincodeEventsRequest
impl !RefUnwindSafe for ChaincodeEventsRequest
impl !UnwindSafe for ChaincodeEventsRequest
impl Send for ChaincodeEventsRequest
impl Sync for ChaincodeEventsRequest
impl Unpin for ChaincodeEventsRequest
impl UnsafeUnpin for ChaincodeEventsRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request