pub struct ServiceChannel { /* private fields */ }Expand description
Shared request/response channel between a [BasicServiceClient] and a
[BasicServiceServer] for the same service name within a single process.
Implementations§
Source§impl ServiceChannel
impl ServiceChannel
pub fn push_request(&self, id: u64, req: Box<dyn Any + Send>)
pub fn pop_request(&self) -> Option<(u64, Box<dyn Any + Send>)>
pub fn push_response(&self, id: u64, res: Box<dyn Any + Send>)
pub fn pop_response(&self, id: u64) -> Option<Box<dyn Any + Send>>
pub fn pending_request_count(&self) -> usize
pub fn pending_response_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ServiceChannel
impl RefUnwindSafe for ServiceChannel
impl Send for ServiceChannel
impl Sync for ServiceChannel
impl Unpin for ServiceChannel
impl UnsafeUnpin for ServiceChannel
impl UnwindSafe for ServiceChannel
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