pub struct XpcConnection<S> { /* private fields */ }Expand description
A live XPC connection to an iOS 17+ service.
Implementations§
Source§impl<S: AsyncRead + AsyncWrite + Unpin> XpcConnection<S>
impl<S: AsyncRead + AsyncWrite + Unpin> XpcConnection<S>
pub fn new(framer: H2Framer<S>) -> Self
Sourcepub async fn send(&mut self, body: XpcValue) -> Result<(), XpcError>
pub async fn send(&mut self, body: XpcValue) -> Result<(), XpcError>
Send a dictionary as an XPC message on the clientServer stream.
Sourcepub async fn send_with_flags(
&mut self,
body: XpcValue,
extra_flags: u32,
) -> Result<(), XpcError>
pub async fn send_with_flags( &mut self, body: XpcValue, extra_flags: u32, ) -> Result<(), XpcError>
Send a dictionary as an XPC message on the clientServer stream with additional wrapper flags.
Sourcepub async fn recv(&mut self) -> Result<XpcMessage, XpcError>
pub async fn recv(&mut self) -> Result<XpcMessage, XpcError>
Receive one XPC message from the serverClient stream.
Auto Trait Implementations§
impl<S> Freeze for XpcConnection<S>where
S: Freeze,
impl<S> RefUnwindSafe for XpcConnection<S>where
S: RefUnwindSafe,
impl<S> Send for XpcConnection<S>where
S: Send,
impl<S> Sync for XpcConnection<S>where
S: Sync,
impl<S> Unpin for XpcConnection<S>where
S: Unpin,
impl<S> UnsafeUnpin for XpcConnection<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for XpcConnection<S>where
S: UnwindSafe,
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