pub struct InitializationActor {
pub server_capabilities: Value,
pub protocol_version: String,
pub server_info: (String, String),
pub instructions: Option<String>,
}
Fields§
§server_capabilities: Value
§protocol_version: String
§server_info: (String, String)
§instructions: Option<String>
Implementations§
Source§impl InitializationActor
impl InitializationActor
pub fn handle_initialize_request( &self, req: JsonRpcRequest, ) -> Result<JsonRpcResponse, JsonRpcError>
pub fn handle_initialized_notification_request( &self, req: JsonRpcRequest, ) -> Result<JsonRpcResponse, JsonRpcError>
Trait Implementations§
Source§impl Actor for InitializationActor
impl Actor for InitializationActor
Source§type Context = Context<InitializationActor>
type Context = Context<InitializationActor>
Actor execution context type
Source§fn started(&mut self, ctx: &mut Self::Context)
fn started(&mut self, ctx: &mut Self::Context)
Called when an actor gets polled the first time.
Source§fn stopping(&mut self, ctx: &mut Self::Context) -> Running
fn stopping(&mut self, ctx: &mut Self::Context) -> Running
Called after an actor is in
Actor::Stopping
state. Read moreSource§fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self>
fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self>
Start new actor in arbiter’s thread.
Source§impl Clone for InitializationActor
impl Clone for InitializationActor
Source§fn clone(&self) -> InitializationActor
fn clone(&self) -> InitializationActor
Returns a duplicate 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 moreSource§impl Handler<TopicMessage> for InitializationActor
Handle InitializedNotification
messages received via the TopicRegistryActor.
impl Handler<TopicMessage> for InitializationActor
Handle InitializedNotification
messages received via the TopicRegistryActor.
Auto Trait Implementations§
impl Freeze for InitializationActor
impl RefUnwindSafe for InitializationActor
impl Send for InitializationActor
impl Sync for InitializationActor
impl Unpin for InitializationActor
impl UnwindSafe for InitializationActor
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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