[−][src]Struct cb_fut::CBStreamBlocked
An object that represent callback function arguments. It implement futures::Stream
trait and return
value to the function by using CBBlockResult.
It can be obtain by using macro stream_blocked. See stream_blocked for example usage.
This struct shall be semi-transparent to user.
Implementations
impl<R, T> CBStreamBlocked<R, T> where
R: 'static + Clone,
[src]
R: 'static + Clone,
pub fn new(
return_sender: Sender<R>,
reciever: UnboundedReceiver<T>,
default_ret_val: R
) -> CBStreamBlocked<R, T> where
R: 'static + Clone,
[src]
return_sender: Sender<R>,
reciever: UnboundedReceiver<T>,
default_ret_val: R
) -> CBStreamBlocked<R, T> where
R: 'static + Clone,
You will likely use this macro stream_blocked instead of trying to construct this struct using this method.
It require channel to communicate back and forth between the function and this struct.
Auto Trait Implementations
impl<R, T> !RefUnwindSafe for CBStreamBlocked<R, T>
impl<R, T> Send for CBStreamBlocked<R, T> where
R: Send,
T: Send,
R: Send,
T: Send,
impl<R, T> !Sync for CBStreamBlocked<R, T>
impl<R, T> Unpin for CBStreamBlocked<R, T> where
R: Unpin,
R: Unpin,
impl<R, T> !UnwindSafe for CBStreamBlocked<R, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,