pub struct IpcServer<C: IpcServerCommand> { /* private fields */ }
Implementations§
Source§impl<C: IpcServerCommand> IpcServer<C>
impl<C: IpcServerCommand> IpcServer<C>
Sourcepub fn new(socket_path: &str) -> Result<IpcServer<C>>
pub fn new(socket_path: &str) -> Result<IpcServer<C>>
Initialize a new IpcServer. Recall that there is no dedicated server
thread. You must call handle_new_messages
to poll for and process
new messages
Sourcepub fn handle_new_messages<'a>(&mut self, context: C::Context<'a>) -> Result<()>
pub fn handle_new_messages<'a>(&mut self, context: C::Context<'a>) -> Result<()>
Polls for new messages from any clients, and processes and responds.
Auto Trait Implementations§
impl<C> !Freeze for IpcServer<C>
impl<C> RefUnwindSafe for IpcServer<C>where
C: RefUnwindSafe,
impl<C> Send for IpcServer<C>where
C: Send,
impl<C> Sync for IpcServer<C>where
C: Sync,
impl<C> Unpin for IpcServer<C>where
C: Unpin,
impl<C> UnwindSafe for IpcServer<C>where
C: 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