Struct Close

#[must_use = "futures do nothing unless you `.await` or poll them"]
pub struct Close<'a, Si: ?Sized, Item> { /* private fields */ }

Future for the close method.

Trait Implementations

impl<'a, Si: Debug + ?Sized, Item: Debug> Debug for Close<'a, Si, Item>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<Si: Sink<Item> + Unpin + ?Sized, Item> Future for Close<'_, Si, Item>

type Output = Result<(), <Si as Sink<Item>>::Error>;
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

impl<Si: Unpin + ?Sized, Item> Unpin for Close<'_, Si, Item>

Auto Trait Implementations

impl<'a, Si, Item> !UnwindSafe for Close<'a, Si, Item>

impl<'a, Si, Item> Freeze for Close<'a, Si, Item> where &'a mut Si: Freeze, PhantomData<fn(Item)>: Freeze, Si: ?Sized,

impl<'a, Si, Item> RefUnwindSafe for Close<'a, Si, Item> where &'a mut Si: RefUnwindSafe, PhantomData<fn(Item)>: RefUnwindSafe, Si: ?Sized,

impl<'a, Si, Item> Send for Close<'a, Si, Item> where &'a mut Si: Send, PhantomData<fn(Item)>: Send, Si: ?Sized,

impl<'a, Si, Item> Sync for Close<'a, Si, Item> where &'a mut Si: Sync, PhantomData<fn(Item)>: Sync, Si: ?Sized,

impl<'a, Si, Item> UnsafeUnpin for Close<'a, Si, Item> where &'a mut Si: UnsafeUnpin, PhantomData<fn(Item)>: UnsafeUnpin, Si: ?Sized,

Blanket Implementations

impl<F> IntoFuture for Close<'a, Si, Item> where F: Future,

type Output = <F as Future>::Output;
type IntoFuture = F;
fn into_future(self) -> <F as IntoFuture>::IntoFuture

impl<F, T, E> TryFuture for Close<'a, Si, Item> where F: Future<Output = Result<T, E>> + ?Sized,

type Ok = T;
type Error = E;
fn try_poll(self: Pin<&mut F>, cx: &mut Context<'_>) -> Poll<<F as Future>::Output>

impl<Fut> TryFutureExt for Close<'a, Si, Item> where Fut: TryFuture + ?Sized,

impl<T> Any for Close<'a, Si, Item> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Close<'a, Si, Item> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Close<'a, Si, Item> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for Close<'a, Si, Item>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FutureExt for Close<'a, Si, Item> where T: Future + ?Sized,

impl<T, U> Into<U> for Close<'a, Si, Item> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for Close<'a, Si, Item> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for Close<'a, Si, Item> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>