Struct network_clique::service::ServiceInterface  
source · struct ServiceInterface<PK: PublicKey, D: Data, A: Data> {
    commands_for_service: UnboundedSender<ServiceCommand<PK, D, A>>,
    next_from_service: UnboundedReceiver<D>,
}Fields§
§commands_for_service: UnboundedSender<ServiceCommand<PK, D, A>>§next_from_service: UnboundedReceiver<D>Trait Implementations§
source§impl<PK: PublicKey, D: Data, A: Data> Network<PK, A, D> for ServiceInterface<PK, D, A>
 
impl<PK: PublicKey, D: Data, A: Data> Network<PK, A, D> for ServiceInterface<PK, D, A>
source§fn add_connection(&mut self, peer: PK, address: A)
 
fn add_connection(&mut self, peer: PK, address: A)
Add the peer to the set of connected peers.
source§fn remove_connection(&mut self, peer: PK)
 
fn remove_connection(&mut self, peer: PK)
Remove the peer from the set of connected peers and close the connection.
Auto Trait Implementations§
impl<PK, D, A> !RefUnwindSafe for ServiceInterface<PK, D, A>
impl<PK, D, A> Send for ServiceInterface<PK, D, A>
impl<PK, D, A> Sync for ServiceInterface<PK, D, A>
impl<PK, D, A> Unpin for ServiceInterface<PK, D, A>
impl<PK, D, A> !UnwindSafe for ServiceInterface<PK, D, A>
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