pub fn handle_type(&self) -> FidlHdlType {
            if self.is_invalid() {
                FidlHdlType::Invalid
            } else {
                with_handle(self.0, |obj| match obj {
                    FidlHandle::LeftChannel(_, _) => FidlHdlType::Channel,
                    FidlHandle::RightChannel(_, _) => FidlHdlType::Channel,
                    FidlHandle::LeftStreamSocket(_, _) => FidlHdlType::Socket,
                    FidlHandle::RightStreamSocket(_, _) => FidlHdlType::Socket,
                    FidlHandle::LeftDatagramSocket(_, _) => FidlHdlType::Socket,
                    FidlHandle::RightDatagramSocket(_, _) => FidlHdlType::Socket,
                })
            }
        }
/// Non-fuchsia only: return the type of a handle
Non-fuchsia only: return the type of a handle
Non - fuchsia only : return the type of a handle
pub fn handle_type(&self) -> FidlHdlType {
            if self.is_invalid() {
                FidlHdlType::Invalid
            } else {
                with_handle(self.0, |obj| match obj {
                    FidlHandle::LeftChannel(_, _) => FidlHdlType::Channel,
                    FidlHandle::RightChannel(_, _) => FidlHdlType::Channel,
                    FidlHandle::LeftStreamSocket(_, _) => FidlHdlType::Socket,
                    FidlHandle::RightStreamSocket(_, _) => FidlHdlType::Socket,
                    FidlHandle::LeftDatagramSocket(_, _) => FidlHdlType::Socket,
                    FidlHandle::RightDatagramSocket(_, _) => FidlHdlType::Socket,
                })
            }
        }
pub fn handle_type ( & self ) -> FidlHdlType { if self . is_invalid ( ) { FidlHdlType :: Invalid } else { with_handle ( self . 0 , | obj | match obj { FidlHandle :: LeftChannel ( _ , _ ) => FidlHdlType :: Channel , FidlHandle :: RightChannel ( _ , _ ) => FidlHdlType :: Channel , FidlHandle :: LeftStreamSocket ( _ , _ ) => FidlHdlType :: Socket , FidlHandle :: RightStreamSocket ( _ , _ ) => FidlHdlType :: Socket , FidlHandle :: LeftDatagramSocket ( _ , _ ) => FidlHdlType :: Socket , FidlHandle :: RightDatagramSocket ( _ , _ ) => FidlHdlType :: Socket , } ) } }
Non-fuchsia only: return the type of a handle
Non - fuchsia only : return the type of a handle
&self
&self