pub struct Service { /* private fields */ }Implementations
sourceimpl Service
impl Service
pub async fn new(_config: &Config) -> Result<Self, Error>
pub async fn start(
&self,
_p2p_block: (),
_p2p_request: (),
_relayer: (),
_bft: Sender<BftMpsc>,
_block_importer: Sender<ImportBlockMpsc>
)
pub async fn stop(&self) -> Option<JoinHandle<()>>
pub fn sender(&self) -> &Sender<SyncMpsc>
Auto Trait Implementations
impl !RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl !UnwindSafe for Service
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more