Lines Matching refs:IpcResult
32 use crate::{IpcResult, IpcStatusCode};
92 /// use ipc::IpcResult;
98 /// fn serialize(&self, parcel: &mut MsgParcel) -> IpcResult<()> {
107 pub fn write<T: Serialize + ?Sized>(&mut self, value: &T) -> IpcResult<()> {
118 /// use ipc::IpcResult;
124 /// fn serialize(&self, parcel: &mut MsgParcel) -> IpcResult<()> {
129 /// fn deserialize(parcel: &mut MsgParcel) -> IpcResult<Self> {
138 pub fn read<T: Deserialize>(&mut self) -> IpcResult<T> {
151 pub fn write_interface_token(&mut self, name: &str) -> IpcResult<()> {
168 pub fn read_interface_token(&mut self) -> IpcResult<String> {
169 fn read_process(parcel: Pin<&mut MessageParcel>) -> IpcResult<String> {
200 pub fn write_file(&mut self, file: File) -> IpcResult<()> {
233 pub fn read_file(&mut self) -> IpcResult<File> {
248 pub fn write_buffer(&mut self, buffer: &[u8]) -> IpcResult<()> {
264 pub fn read_buffer(&mut self, len: usize) -> IpcResult<Vec<u8>> {
276 pub fn write_string16(&mut self, s: &str) -> IpcResult<()> {
283 pub fn read_string16(&mut self) -> IpcResult<String> {
287 pub fn write_string16_vec(&mut self, s: &[String]) -> IpcResult<()> {
294 pub fn read_string16_vec(&mut self) -> IpcResult<Vec<String>> {
322 pub fn write_remote(&mut self, remote: RemoteObj) -> IpcResult<()> {
347 pub fn read_remote(&mut self) -> IpcResult<RemoteObj> {
350 ) -> IpcResult<UniquePtr<IRemoteObjectWrapper>> {
647 ) -> IpcResult<()> {
666 ParcelMem::Null => IpcResult::Err(IpcStatusCode::Failed),
672 f: fn(parcel: Pin<&mut MessageParcel>) -> IpcResult<T>,
673 ) -> IpcResult<T> {
686 ParcelMem::Null => IpcResult::Err(IpcStatusCode::Failed),