pub struct ST<T> { /* private fields */ }Expand description
Single-threaded container.
ST<T> cannot be send to another thread and shared by multiple threads.
Implementations§
Source§impl<T: ServiceMsg> ST<ClientRecv<T>>
impl<T: ServiceMsg> ST<ClientRecv<T>>
Sourcepub fn try_recv(
self,
) -> RecvResult<(Client<T>, <T as ServiceMsg>::Response, Header), Self>
pub fn try_recv( self, ) -> RecvResult<(Client<T>, <T as ServiceMsg>::Response, Header), Self>
This function calls ClientRecv::try_recv internally,
but RecvResult::RetryLater includes ST<CleintRecv<T>> instead of ClientRecv<T>.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ST<T>where
T: Freeze,
impl<T> !RefUnwindSafe for ST<T>
impl<T> !Send for ST<T>
impl<T> !Sync for ST<T>
impl<T> Unpin for ST<T>where
T: Unpin,
impl<T> UnwindSafe for ST<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more