Lines Matching refs:Result

29 use crate::{ConnectResult, Deserialize, Handle, MessageResult, Result, TipcError};
84 pub fn new<T: AsRef<str>>(path: T) -> Result<Self> { in new()
126 fn try_clone(&self) -> core::result::Result<Self, Self::Error> { in try_clone()
145 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
162 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
205 pub(crate) fn try_new_port(cfg: &PortCfg) -> Result<Rc<Self>> { in try_new_port()
226 fn try_new_connection(handle: Handle, data: D::Connection) -> Result<Rc<Self>> { in try_new_connection()
260 pub fn try_from_bytes(bytes: &[u8]) -> Result<Self> { in try_from_bytes()
269 pub fn new_from_string(uuid_str: &str) -> Result<Self> { in new_from_string()
275 conversion_fn: fn(&str, u32) -> core::result::Result<T, ParseIntError>, in new_from_string()
276 ) -> Result<T> { in new_from_string()
285 ) -> Result<()> { in new_from_string() argument
344 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument
388 ) -> Result<ConnectResult<Self::Connection>>; in on_connect()
402 ) -> Result<MessageResult>; in on_message()
422 ) -> Result<ConnectResult<Self::Connection>>; in on_connect()
439 ) -> Result<MessageResult>; in on_message()
458 ) -> Result<ConnectResult<<Self as UnbufferedService>::Connection>> { in on_connect()
467 ) -> Result<MessageResult> { in on_message()
548 ) -> $crate::Result<$crate::ConnectResult<Self::Connection>> {
557 ) -> $crate::Result<$crate::MessageResult> {
576 ) -> $crate::Result<$crate::ConnectResult<Self::Connection>> {
585 ) -> $crate::Result<$crate::MessageResult> {
614 ) -> Result<ConnectResult<Self::Connection>>; in on_connect()
628 ) -> Result<MessageResult>; in on_message()
662 ) -> Result<ConnectResult<Self::Connection>> { in on_connect()
671 ) -> Result<MessageResult> { in on_message()
715 ) -> Result<ConnectResult<Self::Connection>> { in on_connect()
724 ) -> Result<MessageResult> { in on_message()
798 fn new() -> $crate::Result<Self> {
805 …n add_service<T>(&mut self, service: alloc::rc::Rc<T>, port: $crate::PortCfg) -> $crate::Result<()>
843 ) -> $crate::Result<$crate::ConnectResult<Self::Connection>> {
861 ) -> $crate::Result<$crate::MessageResult> {
963 pub fn new(service: S, port_cfg: PortCfg, buffer: B) -> Result<Self> { in new()
976 pub fn new_unbuffered(service: S, port_cfg: PortCfg) -> Result<Self> { in new_unbuffered()
1025 pub fn new_with_dispatcher(dispatcher: D, buffer: B) -> Result<Self> { in new_with_dispatcher()
1034 .collect::<Result<_>>()?; in new_with_dispatcher()
1046 pub fn run_event_loop(mut self) -> Result<()> { in run_event_loop() argument
1093 fn event_loop_inner(&mut self) -> Result<()> { in event_loop_inner() argument
1110 fn handler(&mut self, channel: Rc<Channel<D>>, event: &trusty_sys::uevent) -> Result<()> { in handler() argument
1157 fn handle_connect(&mut self, handle: &Handle, cfg: &PortCfg) -> Result<()> { in handle_connect() argument
1179 fn handle_message(&mut self, handle: &Handle, data: &D::Connection) -> Result<MessageResult> { in handle_message()
1193 ConnectResult, Deserialize, Handle, Manager, MessageResult, Result, Serialize, Serializer,
1224 ) -> Result<ConnectResult<Self::Connection>> { in on_connect()
1233 ) -> Result<MessageResult> { in on_message()
1366 ) -> core::result::Result<S::Ok, S::Error> { in serialize()
1379 ) -> core::result::Result<Self, Self::Error> { in deserialize()
1395 ) -> Result<ConnectResult<Self::Connection>> { in on_connect()
1404 ) -> Result<MessageResult> { in on_message()
1421 ) -> Result<ConnectResult<Self::Connection>> { in on_connect()
1430 ) -> Result<MessageResult> { in on_message()
1446 ) -> Result<ConnectResult<Self::Connection>> { in on_connect()
1455 ) -> Result<MessageResult> { in on_message()
1538 ) -> Result<ConnectResult<Self::Connection>> { in on_connect()
1547 ) -> Result<MessageResult> { in on_message()
1566 ) -> Result<ConnectResult<Self::Connection>> { in on_connect()
1575 ) -> Result<MessageResult> { in on_message()