pub struct Server { /* private fields */ }Expand description
RPC Server
Implementations§
Source§impl Server
impl Server
pub fn new(config: ServerConfig) -> Self
Sourcepub fn socket_path(&self) -> &PathBuf
pub fn socket_path(&self) -> &PathBuf
Get the socket path
Sourcepub fn event_sender(&self) -> Sender<RpcNotification>
pub fn event_sender(&self) -> Sender<RpcNotification>
Get event broadcaster for sending notifications
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Server
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnwindSafe for Server
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