pub struct NetworkManagerHandle<T: Send + 'static, E: Send + 'static> { /* private fields */ }
Expand description
Handle for working with network manager.
Implementations§
Source§impl<T: Send + 'static, E: Send + 'static> NetworkManagerHandle<T, E>
impl<T: Send + 'static, E: Send + 'static> NetworkManagerHandle<T, E>
Sourcepub fn send(&self, task: Task<T, E>) -> Result<(), SendError<Task<T, E>>>
pub fn send(&self, task: Task<T, E>) -> Result<(), SendError<Task<T, E>>>
Aynchronous sending task to network manager.
Sourcepub fn get_sender(&self) -> SyncSender<Task<T, E>>
pub fn get_sender(&self) -> SyncSender<Task<T, E>>
Returns copy of task sender.
Sourcepub fn recv(&self) -> Result<RequestDownloaderResult<T, E>, RecvError>
pub fn recv(&self) -> Result<RequestDownloaderResult<T, E>, RecvError>
Receives result with locking.
Trait Implementations§
Auto Trait Implementations§
impl<T, E> Freeze for NetworkManagerHandle<T, E>
impl<T, E> !RefUnwindSafe for NetworkManagerHandle<T, E>
impl<T, E> Send for NetworkManagerHandle<T, E>
impl<T, E> !Sync for NetworkManagerHandle<T, E>
impl<T, E> Unpin for NetworkManagerHandle<T, E>
impl<T, E> !UnwindSafe for NetworkManagerHandle<T, E>
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