pub struct StreamingRequest<T: Send + 'static>(pub GrpcStream<T>);
Expand description
Excluding initial metadata which is passed separately
Tuple Fields§
§0: GrpcStream<T>
Implementations§
Source§impl<T: Send + 'static> StreamingRequest<T>
impl<T: Send + 'static> StreamingRequest<T>
pub fn new<S>(stream: S) -> StreamingRequest<T>
pub fn once(item: T) -> StreamingRequest<T>
pub fn iter<I>(iter: I) -> StreamingRequest<T>
pub fn mpsc() -> (StreamingRequestSender<T>, StreamingRequest<T>)
pub fn single(item: T) -> StreamingRequest<T>
pub fn empty() -> StreamingRequest<T>
pub fn err(err: Error) -> StreamingRequest<T>
Auto Trait Implementations§
impl<T> Freeze for StreamingRequest<T>
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§
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