Struct fuel_txpool::service::Service
source · pub struct Service { /* private fields */ }Implementations
sourceimpl Service
impl Service
pub fn new(
txpool_sender: Sender,
tx_status_sender: Sender<TxStatusBroadcast>,
context: Context
) -> Result<Self>
pub async fn start(&self) -> Result<()>
pub async fn stop(&self) -> Option<JoinHandle<()>>
pub fn subscribe_ch(&self) -> Receiver<TxStatusBroadcast>
pub fn sender(&self) -> &Sender
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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