Struct grpc::StreamingRequest
source · pub struct StreamingRequest<T: Send + 'static>(pub GrpcStream<T>);
Expand description
Excluding initial metadata which is passed separately
Tuple Fields
0: GrpcStream<T>
Implementations
sourceimpl<T: Send + 'static> StreamingRequest<T>
impl<T: Send + 'static> StreamingRequest<T>
pub fn new<S>(stream: S) -> StreamingRequest<T>where
S: Stream<Item = T, Error = Error> + Send + 'static,
pub fn once(item: T) -> StreamingRequest<T>
pub fn iter<I>(iter: I) -> StreamingRequest<T>where
I: IntoIterator<Item = T>,
I::IntoIter: Send + 'static,
pub fn single(item: T) -> StreamingRequest<T>
pub fn empty() -> StreamingRequest<T>
pub fn err(err: Error) -> StreamingRequest<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for StreamingRequest<T>
impl<T> Send for StreamingRequest<T>
impl<T> !Sync for StreamingRequest<T>
impl<T> Unpin for StreamingRequest<T>
impl<T> !UnwindSafe for StreamingRequest<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more