pub struct ControlClient { /* private fields */ }Expand description
Клиент управления инстансом.
Implementations§
Source§impl ControlClient
impl ControlClient
Sourcepub async fn halt(
&mut self,
context: &CallContext,
command: HaltCommand,
) -> Result<(), ClientError>
pub async fn halt( &mut self, context: &CallContext, command: HaltCommand, ) -> Result<(), ClientError>
Остановить инстанс.
§Ошибки
Несовместимые параметры команды — INVALID_ARGUMENT; защита памяти не взведена —
FAILED_PRECONDITION.
Sourcepub async fn change_global_logging(
&mut self,
context: &CallContext,
command: ChangeGlobalLoggingCommand,
) -> Result<(), ClientError>
pub async fn change_global_logging( &mut self, context: &CallContext, command: ChangeGlobalLoggingCommand, ) -> Result<(), ClientError>
Сменить уровень и формат журнала на ходу.
Sourcepub async fn memory_diagnostics(
&mut self,
context: &CallContext,
request_message: MemoryDiagnosticsRequest,
) -> Result<MemoryInfo, ClientError>
pub async fn memory_diagnostics( &mut self, context: &CallContext, request_message: MemoryDiagnosticsRequest, ) -> Result<MemoryInfo, ClientError>
Состояние памяти процесса.
Sourcepub async fn consume_logs(
&mut self,
context: &CallContext,
min_level: LogLevel,
) -> Result<GuardedStream<Streaming<LogMessage>>, ClientError>
pub async fn consume_logs( &mut self, context: &CallContext, min_level: LogLevel, ) -> Result<GuardedStream<Streaming<LogMessage>>, ClientError>
Поток сообщений журнала уровня не ниже min_level.
Auto Trait Implementations§
impl !Freeze for ControlClient
impl !RefUnwindSafe for ControlClient
impl !UnwindSafe for ControlClient
impl Forget for ControlClient
impl Move for ControlClient
impl Send for ControlClientwhere
Arc<Settings>: Send,
Arc<dyn CallLoad>: Send,
Arc<ClientLog>: Send,
Arc<Chan<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>, Semaphore>>: Send,
BoxRaw<dyn Future<Output = Result<OwnedPermit<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>, PollSendError<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>>> + Send>: Send,
Arc<Mutex<Option<ServiceError>>>: Send,
BoxRaw<ByteStr>: Send,
Bytes: Send,
impl Sync for ControlClientwhere
Arc<Settings>: Sync,
Arc<dyn CallLoad>: Sync,
Arc<ClientLog>: Sync,
Arc<Chan<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>, Semaphore>>: Sync,
ReusableBoxFuture<'static, Result<OwnedPermit<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>, PollSendError<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>>>: Sync,
Arc<Mutex<Option<ServiceError>>>: Sync,
BoxRaw<ByteStr>: Sync,
Bytes: Sync,
impl Unpin for ControlClientwhere
Arc<Settings>: Unpin,
Arc<dyn CallLoad>: Unpin,
Arc<ClientLog>: Unpin,
Arc<Chan<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>, Semaphore>>: Unpin,
Box<dyn Future<Output = Result<OwnedPermit<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>, PollSendError<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>>> + Send>: Unpin,
Arc<Mutex<Option<ServiceError>>>: Unpin,
Box<ByteStr>: Unpin,
*const u8: Unpin,
Align8<*mut ()>: Unpin,
&'static Vtable: Unpin,
impl UnsafeUnpin for ControlClientwhere
*const ArcInner<Settings> is !null: UnsafeUnpin,
PhantomData<ArcInner<Settings>>: UnsafeUnpin,
*const ArcInner<dyn CallLoad> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn CallLoad>>: UnsafeUnpin,
*const ArcInner<ClientLog> is !null: UnsafeUnpin,
PhantomData<ArcInner<ClientLog>>: UnsafeUnpin,
*const ArcInner<Chan<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>, Semaphore>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Chan<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>, Semaphore>>>: UnsafeUnpin,
*const dyn Future<Output = Result<OwnedPermit<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>, PollSendError<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>>> + Send is !null: UnsafeUnpin,
PhantomData<dyn Future<Output = Result<OwnedPermit<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>, PollSendError<Message<Request<Body>, Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn Error + Sync + Send>>> + Send>>>>>> + Send>: UnsafeUnpin,
*const ArcInner<Mutex<Option<ServiceError>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Option<ServiceError>>>>: UnsafeUnpin,
*const ByteStr is !null: UnsafeUnpin,
PhantomData<ByteStr>: UnsafeUnpin,
*const u8: UnsafeUnpin,
Align8<*mut ()>: UnsafeUnpin,
&'static Vtable: UnsafeUnpin,
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request