pub struct Mailbox { /* private fields */ }Implementations§
Source§impl Mailbox
impl Mailbox
pub fn req_queue_is_full(&self) -> bool
pub fn req_queue_len(&self) -> usize
pub async fn send(&mut self, data: Vec<u8>) -> Result<(), SendError<Vec<u8>>>
pub async fn send_priority( &mut self, data: Vec<u8>, p: Priority, ) -> Result<(), SendError<Vec<u8>>>
pub async fn quick_send( &mut self, data: Vec<u8>, ) -> Result<(), SendError<Vec<u8>>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mailbox
impl !RefUnwindSafe for Mailbox
impl Send for Mailbox
impl Sync for Mailbox
impl Unpin for Mailbox
impl !UnwindSafe for Mailbox
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