pub(crate) struct BlockSyncServerStub {
requests: Receiver<(VerifyingKey, BlockSyncRequest)>,
}
Expand description
A receiving end for sync requests. The BlockSyncServerStub::recv_request
method returns the
received request.
Fields§
§requests: Receiver<(VerifyingKey, BlockSyncRequest)>
Implementations§
source§impl BlockSyncServerStub
impl BlockSyncServerStub
pub(crate) fn new( requests: Receiver<(VerifyingKey, BlockSyncRequest)>, ) -> BlockSyncServerStub
sourcepub(crate) fn recv_request(
&self,
) -> Result<(VerifyingKey, BlockSyncRequest), BlockSyncRequestReceiveError>
pub(crate) fn recv_request( &self, ) -> Result<(VerifyingKey, BlockSyncRequest), BlockSyncRequestReceiveError>
Receive a BlockSyncRequest if available, else return BlockSyncRequestReceiveError::NotAvailable.
Auto Trait Implementations§
impl Freeze for BlockSyncServerStub
impl RefUnwindSafe for BlockSyncServerStub
impl Send for BlockSyncServerStub
impl !Sync for BlockSyncServerStub
impl Unpin for BlockSyncServerStub
impl UnwindSafe for BlockSyncServerStub
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