Struct smol_hyper::rt::SmolExecutor
source · pub struct SmolExecutor<E: ?Sized>(/* private fields */);
Expand description
Use an [async-executor
] as an executor.
Implementations§
source§impl<E> SmolExecutor<E>
impl<E> SmolExecutor<E>
sourcepub fn new(inner: E) -> Self
pub fn new(inner: E) -> Self
Create a new SmolExecutor
based around something that derefs to an Executor
.
sourcepub fn into_inner(self) -> E
pub fn into_inner(self) -> E
Get the inner type.
Trait Implementations§
source§impl<E: ?Sized> AsMut<E> for SmolExecutor<E>
impl<E: ?Sized> AsMut<E> for SmolExecutor<E>
source§impl<E: ?Sized> AsRef<E> for SmolExecutor<E>
impl<E: ?Sized> AsRef<E> for SmolExecutor<E>
source§impl<E: Clone + ?Sized> Clone for SmolExecutor<E>
impl<E: Clone + ?Sized> Clone for SmolExecutor<E>
source§fn clone(&self) -> SmolExecutor<E>
fn clone(&self) -> SmolExecutor<E>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<E: ?Sized> RefUnwindSafe for SmolExecutor<E>where
E: RefUnwindSafe,
impl<E: ?Sized> Send for SmolExecutor<E>where
E: Send,
impl<E: ?Sized> Sync for SmolExecutor<E>where
E: Sync,
impl<E: ?Sized> Unpin for SmolExecutor<E>where
E: Unpin,
impl<E: ?Sized> UnwindSafe for SmolExecutor<E>where
E: UnwindSafe,
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