[−][src]Struct libp2p_core::nodes::handled_node_tasks::ClosedTask
Task after it has been closed. The connection to the remote is potentially still going on, but no new event for this task will be received.
Methods
impl<TInEvent, TUserData> ClosedTask<TInEvent, TUserData>[src]
pub fn id(&self) -> TaskId[src]
Returns the task id. Note that this task is no longer part of the collection, and therefore
calling task() with this ID will fail.
pub fn user_data(&self) -> &TUserData[src]
Returns the user data associated with the task.
pub fn user_data_mut(&mut self) -> &mut TUserData[src]
Returns the user data associated with the task.
pub fn into_user_data(self) -> TUserData[src]
Finish destroying the task and yield the user data. This closes the connection to the remote.
Trait Implementations
impl<TInEvent, TUserData> Debug for ClosedTask<TInEvent, TUserData> where
TUserData: Debug, [src]
TUserData: Debug,
Auto Trait Implementations
impl<TInEvent, TUserData> Send for ClosedTask<TInEvent, TUserData> where
TInEvent: Send,
TUserData: Send,
TInEvent: Send,
TUserData: Send,
impl<TInEvent, TUserData> Sync for ClosedTask<TInEvent, TUserData> where
TInEvent: Send,
TUserData: Sync,
TInEvent: Send,
TUserData: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Same for T
type Output = T
Should always be Self