Struct network_communicator::NetworkManagerHandle
[−]
[src]
pub struct NetworkManagerHandle<T: Send + 'static, E: Send + 'static> { /* fields omitted */ }
Handle for working with network manager.
Methods
impl<T: Send + 'static, E: Send + 'static> NetworkManagerHandle<T, E>
[src]
fn send(&self, task: Task<T, E>) -> Result<(), SendError<Task<T, E>>>
Aynchronous sending task to network manager.
fn get_sender(&self) -> SyncSender<Task<T, E>>
Returns copy of task sender.
fn recv(&self) -> Result<RequestDownloaderResult<T, E>, RecvError>
Receives result with locking.
Trait Implementations
impl<T: Debug + Send + 'static, E: Debug + Send + 'static> Debug for NetworkManagerHandle<T, E>
[src]
impl<T: Send + 'static, E: Send + 'static> Drop for NetworkManagerHandle<T, E>
[src]
fn drop(&mut self)
When dropping we are waiting for termination of all threads.