pub struct OracleServer<C> { /* private fields */ }Expand description
An OracleServer is a router for the host to serve data back to the client OracleReader.
Implementations§
Source§impl<C> OracleServer<C>where
C: Channel,
impl<C> OracleServer<C>where
C: Channel,
Sourcepub const fn new(chanel: C) -> Self
pub const fn new(chanel: C) -> Self
Create a new OracleServer from a Channel.
Trait Implementations§
Source§impl<C: Clone> Clone for OracleServer<C>
impl<C: Clone> Clone for OracleServer<C>
Source§fn clone(&self) -> OracleServer<C>
fn clone(&self) -> OracleServer<C>
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<C: Debug> Debug for OracleServer<C>
impl<C: Debug> Debug for OracleServer<C>
Source§impl<C> PreimageOracleServer for OracleServer<C>
impl<C> PreimageOracleServer for OracleServer<C>
Source§fn next_preimage_request<'life0, 'life1, 'async_trait, F>(
&'life0 self,
fetcher: &'life1 F,
) -> Pin<Box<dyn Future<Output = Result<(), PreimageOracleError>> + Send + 'async_trait>>where
F: PreimageFetcher + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn next_preimage_request<'life0, 'life1, 'async_trait, F>(
&'life0 self,
fetcher: &'life1 F,
) -> Pin<Box<dyn Future<Output = Result<(), PreimageOracleError>> + Send + 'async_trait>>where
F: PreimageFetcher + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get the next preimage request and return the response to the client. Read more
impl<C: Copy> Copy for OracleServer<C>
Auto Trait Implementations§
impl<C> Freeze for OracleServer<C>where
C: Freeze,
impl<C> RefUnwindSafe for OracleServer<C>where
C: RefUnwindSafe,
impl<C> Send for OracleServer<C>where
C: Send,
impl<C> Sync for OracleServer<C>where
C: Sync,
impl<C> Unpin for OracleServer<C>where
C: Unpin,
impl<C> UnwindSafe for OracleServer<C>where
C: UnwindSafe,
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