Struct cros_async::async_types::RecvTubeAsync  
source · pub struct RecvTubeAsync(AsyncTube);Tuple Fields§
§0: AsyncTubeImplementations§
source§impl RecvTubeAsync
 
impl RecvTubeAsync
pub fn new(tube: RecvTube, ex: &Executor) -> Result<Self>
sourcepub async fn next<T: 'static + DeserializeOwned + Send>(&self) -> TubeResult<T>
 
pub async fn next<T: 'static + DeserializeOwned + Send>(&self) -> TubeResult<T>
TODO(b/145998747, b/184398671): this async approach needs to be refactored upstream, but for now is implemented to work using simple blocking futures (avoiding the unimplemented wait_readable).
Auto Trait Implementations§
impl Freeze for RecvTubeAsync
impl !RefUnwindSafe for RecvTubeAsync
impl Send for RecvTubeAsync
impl Sync for RecvTubeAsync
impl Unpin for RecvTubeAsync
impl !UnwindSafe for RecvTubeAsync
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