pub struct DuplexMailbox { /* private fields */ }Implementations§
Source§impl DuplexMailbox
impl DuplexMailbox
pub fn req_queue_is_full(&self) -> bool
pub fn req_queue_len(&self) -> usize
pub fn resp_queue_len(&self) -> usize
pub fn resp_senders_len(&self) -> usize
pub async fn send( &mut self, data: Vec<u8>, ) -> Result<Vec<u8>, SendError<Option<Vec<u8>>>>
pub async fn send_priority( &mut self, data: Vec<u8>, p: Priority, ) -> Result<Vec<u8>, SendError<Option<Vec<u8>>>>
pub async fn quick_send( &mut self, data: Vec<u8>, ) -> Result<Vec<u8>, SendError<Option<Vec<u8>>>>
Trait Implementations§
Source§impl Clone for DuplexMailbox
impl Clone for DuplexMailbox
Source§fn clone(&self) -> DuplexMailbox
fn clone(&self) -> DuplexMailbox
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DuplexMailbox
impl !RefUnwindSafe for DuplexMailbox
impl Send for DuplexMailbox
impl Sync for DuplexMailbox
impl Unpin for DuplexMailbox
impl !UnwindSafe for DuplexMailbox
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> HashExt for Twhere
T: ?Sized,
impl<T> HashExt for Twhere
T: ?Sized,
fn hash_value(self, h: u64) -> HashWrapper<Self>where
Self: Sized,
fn hash_empty(self) -> EmptyHashWrapper<Self>where
Self: Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request