Home
last modified time | relevance | path

Searched refs:SendError (Results 1 – 25 of 35) sorted by relevance

12

/external/rust/crates/crossbeam-channel/src/
Derr.rs12 pub struct SendError<T>(pub T); struct
118 impl<T> fmt::Debug for SendError<T> { implementation
124 impl<T> fmt::Display for SendError<T> { implementation
130 impl<T: Send> error::Error for SendError<T> {} implementation
132 impl<T> SendError<T> { implementation
172 impl<T> From<SendError<T>> for TrySendError<T> {
173 fn from(err: SendError<T>) -> TrySendError<T> { in from()
175 SendError(t) => TrySendError::Disconnected(t), in from()
235 impl<T> From<SendError<T>> for SendTimeoutError<T> {
236 fn from(err: SendError<T>) -> SendTimeoutError<T> { in from()
[all …]
Dlib.rs369 pub use crate::err::{SendError, SendTimeoutError, TrySendError};
Dselect.rs13 use crate::err::{RecvError, SendError};
1207 pub fn send<T>(mut self, s: &Sender<T>, msg: T) -> Result<(), SendError<T>> { in send()
1214 res.map_err(SendError) in send()
/external/rust/crates/tokio/src/sync/mpsc/
Derror.rs8 pub struct SendError<T>(pub T); struct
10 impl<T> fmt::Display for SendError<T> { implementation
16 impl<T: fmt::Debug> std::error::Error for SendError<T> {} implementation
48 impl<T> From<SendError<T>> for TrySendError<T> {
49 fn from(src: SendError<T>) -> TrySendError<T> { in from()
Dbounded.rs4 use crate::sync::mpsc::error::{SendError, TryRecvError, TrySendError};
473 pub async fn send(&self, value: T) -> Result<(), SendError<T>> { in send()
479 Err(_) => Err(SendError(value)), in send()
699 pub fn blocking_send(&self, value: T) -> Result<(), SendError<T>> { in blocking_send()
769 pub async fn reserve(&self) -> Result<Permit<'_, T>, SendError<()>> { in reserve() argument
854 pub async fn reserve_owned(self) -> Result<OwnedPermit<T>, SendError<()>> { in reserve_owned() argument
861 async fn reserve_inner(&self) -> Result<(), SendError<()>> { in reserve_inner() argument
864 Err(_) => Err(SendError(())), in reserve_inner()
Dunbounded.rs3 use crate::sync::mpsc::error::{SendError, TryRecvError};
304 pub fn send(&self, message: T) -> Result<(), SendError<T>> { in send()
306 return Err(SendError(message)); in send()
/external/rust/crates/futures-channel/src/mpsc/
Dmod.rs152 pub struct SendError { struct
159 err: SendError,
174 impl fmt::Display for SendError { implementation
184 impl std::error::Error for SendError {} implementation
186 impl SendError { impl
239 pub fn into_send_error(self) -> SendError { in into_send_error() argument
406 fn poll_ready_nb(&self) -> Poll<Result<(), SendError>> { in poll_ready_nb() argument
411 Poll::Ready(Err(SendError { kind: SendErrorKind::Disconnected })) in poll_ready_nb()
495 return Err(TrySendError { err: SendError { kind: SendErrorKind::Full }, val: msg }); in try_send()
524 err: SendError { kind: SendErrorKind::Disconnected }, in do_send_b()
[all …]
Dsink_impl.rs1 use super::{SendError, Sender, TrySendError, UnboundedSender};
7 type Error = SendError;
34 type Error = SendError;
55 type Error = SendError;
/external/rust/crates/tokio/tests/
Dsync_errors.rs13 is_error::<error::SendError<()>>(); in mpsc_error_bound()
29 is_error::<error::SendError<()>>(); in watch_error_bound()
/external/rust/crates/tokio/src/sync/
Dwatch.rs197 pub struct SendError<T>(pub T); struct
201 impl<T: fmt::Debug> fmt::Display for SendError<T> { implementation
207 impl<T: fmt::Debug> std::error::Error for SendError<T> {} implementation
626 pub fn send(&self, value: T) -> Result<(), error::SendError<T>> { in send()
629 return Err(error::SendError(value)); in send()
Dbroadcast.rs222 pub struct SendError<T>(pub T); struct
224 impl<T> fmt::Display for SendError<T> { implementation
230 impl<T: fmt::Debug> std::error::Error for SendError<T> {} implementation
538 pub fn send(&self, value: T) -> Result<usize, SendError<T>> { in send()
542 return Err(SendError(value)); in send()
/external/openthread/src/core/net/
Dicmp6.cpp90 Error Icmp::SendError(Header::Type aType, Header::Code aCode, const MessageInfo &aMessageInfo, cons… in SendError() function in ot::Ip6::Icmp
96 error = SendError(aType, aCode, aMessageInfo, headers); in SendError()
102 Error Icmp::SendError(Header::Type aType, Header::Code aCode, const MessageInfo &aMessageInfo, cons… in SendError() function in ot::Ip6::Icmp
Dicmp6.hpp287 …Error SendError(Header::Type aType, Header::Code aCode, const MessageInfo &aMessageInfo, const Mes…
301 …Error SendError(Header::Type aType, Header::Code aCode, const MessageInfo &aMessageInfo, const Hea…
/external/crosvm/devices/src/virtio/snd/vios_backend/
Dmod.rs18 use std::sync::mpsc::SendError;
76 StreamThreadSend(SendError<StreamMsg>),
/external/rust/crates/crossbeam-channel/tests/
Dselect_macro.rs13 use crossbeam_channel::{Receiver, RecvError, SendError, Sender, TryRecvError};
1227 send(s, 0) -> res => drop::<Result<(), SendError<i32>>>(res), in result_types()
1230 send(s, 0) -> res => drop::<Result<(), SendError<i32>>>(res), in result_types()
1234 send(s, 0) -> res => drop::<Result<(), SendError<i32>>>(res), in result_types()
1239 send(s, 0) -> res => drop::<Result<(), SendError<i32>>>(res), in result_types()
1358 send(s, 8) -> res => assert_eq!(res, Err(SendError(8))), in try_send()
1421 send(s, 9) -> res => assert_eq!(res, Err(SendError(9))), in send_timeout()
1442 send(s, ()) -> res => assert_eq!(res, Err(SendError(()))), in disconnect_wakes_sender()
Darray.rs11 use crossbeam_channel::{SendError, SendTimeoutError, TrySendError};
206 assert_eq!(s.send(5), Err(SendError(5))); in send_timeout()
229 assert_eq!(s.send(4), Err(SendError(4))); in send_after_disconnect()
326 assert_eq!(s.send(()), Err(SendError(()))); in disconnect_wakes_sender()
Dlist.rs11 use crossbeam_channel::{SendError, SendTimeoutError, TrySendError};
163 assert_eq!(s.send(777), Err(SendError(777))); in send()
195 assert_eq!(s.send(4), Err(SendError(4))); in send_after_disconnect()
Dmpsc.rs30 use std::sync::mpsc::{SendError, TrySendError};
41 pub fn send(&self, t: T) -> Result<(), SendError<T>> { in send()
42 self.inner.send(t).map_err(|cc::SendError(m)| SendError(m)) in send()
59 pub fn send(&self, t: T) -> Result<(), SendError<T>> { in send()
60 self.inner.send(t).map_err(|cc::SendError(m)| SendError(m)) in send()
966 assert_eq!(tx.send(123), Err(SendError(123))); in issue_32114()
Dzero.rs11 use crossbeam_channel::{SendError, SendTimeoutError, TrySendError};
227 assert_eq!(s.send(()), Err(SendError(()))); in disconnect_wakes_sender()
/external/skia/tools/skiaserve/
DResponse.h19 int SendError(MHD_Connection* connection, const char* msg);
DResponse.cpp55 int SendError(MHD_Connection* connection, const char* msg) { in SendError() function
/external/skia/tools/skiaserve/urlhandlers/
DColorModeHandler.cpp39 return SendError(connection, "Unable to create requested surface"); in handle()
DEnableGPUHandler.cpp37 return SendError(connection, "Unable to create GPU surface"); in handle()
DOverdrawHandler.cpp37 return SendError(connection, "Unable to set overdraw"); in handle()
/external/rust/crates/futures/tests/
Dsink.rs342 let mut tx = tx.with(|item: i32| future::ok::<i32, mpsc::SendError>(item + 10)); in with_propagates_poll_ready()
391 let mut is_positive = tx.clone().with(|item| future::ok::<bool, mpsc::SendError>(item > 0)); in with_implements_clone()
394 tx.clone().with(|item: &str| future::ok::<bool, mpsc::SendError>(item.len() > 5)); in with_implements_clone()
538 impl From<mpsc::SendError> for ErrIntoTest { in err_into()
539 fn from(_: mpsc::SendError) -> Self { in err_into()

12