pub struct RpcServer { /* private fields */ }Expand description
RPC server that listens for incoming connections and handles queries.
Implementations§
Source§impl RpcServer
impl RpcServer
Sourcepub fn start(
addr: &RpcAddr,
auth_key: [u8; 32],
event_tx: EventSender,
) -> Result<Self>
pub fn start( addr: &RpcAddr, auth_key: [u8; 32], event_tx: EventSender, ) -> Result<Self>
Start the RPC server on the given address.
Sourcepub fn start_abstract_unix(
instance_name: &str,
auth_key: [u8; 32],
event_tx: EventSender,
) -> Result<Self>
pub fn start_abstract_unix( instance_name: &str, auth_key: [u8; 32], event_tx: EventSender, ) -> Result<Self>
Listen on the abstract socket used by Python Reticulum on Linux.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RpcServer
impl !UnwindSafe for RpcServer
impl Freeze for RpcServer
impl Send for RpcServer
impl Sync for RpcServer
impl Unpin for RpcServer
impl UnsafeUnpin for RpcServer
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
Source§impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more