Struct jsonrpsee_server::ServerHandle
source · pub struct ServerHandle(/* private fields */);
Expand description
Server handle.
When all StopHandle
’s have been dropped
or stop
has been called
the server will be stopped.
Implementations§
source§impl ServerHandle
impl ServerHandle
sourcepub fn stop(&self) -> Result<(), AlreadyStoppedError>
pub fn stop(&self) -> Result<(), AlreadyStoppedError>
Tell the server to stop without waiting for the server to stop.
sourcepub fn is_stopped(&self) -> bool
pub fn is_stopped(&self) -> bool
Check if the server has been stopped.
Trait Implementations§
source§impl Clone for ServerHandle
impl Clone for ServerHandle
source§fn clone(&self) -> ServerHandle
fn clone(&self) -> ServerHandle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ServerHandle
impl !RefUnwindSafe for ServerHandle
impl Send for ServerHandle
impl Sync for ServerHandle
impl Unpin for ServerHandle
impl !UnwindSafe for ServerHandle
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)