pub struct XpcClient { /* private fields */ }Expand description
High-level XPC client for iOS 17+ services.
Implementations§
Source§impl XpcClient
impl XpcClient
Sourcepub async fn connect(addr: Ipv6Addr, port: u16) -> Result<Self, XpcError>
pub async fn connect(addr: Ipv6Addr, port: u16) -> Result<Self, XpcError>
Connect to an XPC service at the given IPv6 address and port.
Sourcepub async fn connect_stream<S>(stream: S) -> Result<Self, XpcError>
pub async fn connect_stream<S>(stream: S) -> Result<Self, XpcError>
Connect to an XPC service over an already-established stream.
Sourcepub async fn call(&mut self, body: XpcValue) -> Result<XpcMessage, XpcError>
pub async fn call(&mut self, body: XpcValue) -> Result<XpcMessage, XpcError>
Send an XPC dictionary and receive the response.
Sourcepub async fn call_recv_client_server(
&mut self,
body: XpcValue,
) -> Result<XpcMessage, XpcError>
pub async fn call_recv_client_server( &mut self, body: XpcValue, ) -> Result<XpcMessage, XpcError>
Send an XPC dictionary and receive the response from stream 1.
Sourcepub async fn send(&mut self, body: XpcValue) -> Result<(), XpcError>
pub async fn send(&mut self, body: XpcValue) -> Result<(), XpcError>
Send without waiting for a response.
Sourcepub async fn recv(&mut self) -> Result<XpcMessage, XpcError>
pub async fn recv(&mut self) -> Result<XpcMessage, XpcError>
Receive the next XPC message.
Sourcepub async fn recv_client_server(&mut self) -> Result<XpcMessage, XpcError>
pub async fn recv_client_server(&mut self) -> Result<XpcMessage, XpcError>
Receive the next XPC message from stream 1.
Auto Trait Implementations§
impl Freeze for XpcClient
impl !RefUnwindSafe for XpcClient
impl Send for XpcClient
impl !Sync for XpcClient
impl Unpin for XpcClient
impl UnsafeUnpin for XpcClient
impl !UnwindSafe for XpcClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more