pub struct UnarySink<T> { /* private fields */ }
Expand description
Implementations
sourceimpl<T> UnarySink<T>
impl<T> UnarySink<T>
pub fn set_headers(&mut self, meta: Metadata)
pub fn set_call_flags(&mut self, flags: u32)
pub fn success(self, t: T) -> UnarySinkResultⓘNotable traits for UnarySinkResultimpl Future for UnarySinkResult type Output = Result<()>;
pub fn fail(self, status: RpcStatus) -> UnarySinkResultⓘNotable traits for UnarySinkResultimpl Future for UnarySinkResult type Output = Result<()>;
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for UnarySink<T>
impl<T> Send for UnarySink<T>
impl<T> !Sync for UnarySink<T>
impl<T> Unpin for UnarySink<T>
impl<T> !UnwindSafe for UnarySink<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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