pub struct ControlConfig { /* private fields */ }Expand description
Управление инстансом: остановка и защита от нехватки памяти.
Implementations§
Source§impl ControlConfig
impl ControlConfig
Trait Implementations§
Source§impl Clone for ControlConfig
impl Clone for ControlConfig
Source§impl Config for ControlConfig
impl Config for ControlConfig
Source§const NAME: &'static str = "Control"
const NAME: &'static str = "Control"
Имя конфигурации — имя типа без суффикса
Config. Даёт имя файла: Configs/Http.yaml.Source§const KEY: &'static str = "control"
const KEY: &'static str = "control"
То же имя с маленькой первой буквы: ключ секции в общем
config.yaml.Source§const DOC: &'static str = "\u{423}\u{43f}\u{440}\u{430}\u{432}\u{43b}\u{435}\u{43d}\u{438}\u{435} \u{438}\u{43d}\u{441}\u{442}\u{430}\u{43d}\u{441}\u{43e}\u{43c}: \u{43e}\u{441}\u{442}\u{430}\u{43d}\u{43e}\u{432}\u{43a}\u{430} \u{438} \u{437}\u{430}\u{449}\u{438}\u{442}\u{430} \u{43e}\u{442} \u{43d}\u{435}\u{445}\u{432}\u{430}\u{442}\u{43a}\u{438} \u{43f}\u{430}\u{43c}\u{44f}\u{442}\u{438}."
const DOC: &'static str = "\u{423}\u{43f}\u{440}\u{430}\u{432}\u{43b}\u{435}\u{43d}\u{438}\u{435} \u{438}\u{43d}\u{441}\u{442}\u{430}\u{43d}\u{441}\u{43e}\u{43c}: \u{43e}\u{441}\u{442}\u{430}\u{43d}\u{43e}\u{432}\u{43a}\u{430} \u{438} \u{437}\u{430}\u{449}\u{438}\u{442}\u{430} \u{43e}\u{442} \u{43d}\u{435}\u{445}\u{432}\u{430}\u{442}\u{43a}\u{438} \u{43f}\u{430}\u{43c}\u{44f}\u{442}\u{438}."
Описание: первый абзац doc-комментария типа. У раздела без описания — пустая строка.
impl Copy for ControlConfig
Source§impl Debug for ControlConfig
impl Debug for ControlConfig
Source§impl Default for ControlConfig
impl Default for ControlConfig
impl Eq for ControlConfig
Source§impl Node for ControlConfig
impl Node for ControlConfig
Source§fn read(
raw: &Raw,
path: &Path,
problems: &mut Problems,
) -> Result<Self, Unbuilt>
fn read( raw: &Raw, path: &Path, problems: &mut Problems, ) -> Result<Self, Unbuilt>
Читает узел из прочитанного дерева.
Source§fn overlay(
&mut self,
raw: &Raw,
path: &Path,
problems: &mut Problems,
) -> Result<(), Unbuilt>
fn overlay( &mut self, raw: &Raw, path: &Path, problems: &mut Problems, ) -> Result<(), Unbuilt>
Накладывает прочитанное поверх значения. Все проблемы записывает в
problems и возвращает
Unbuilt, если значение не построить.Source§fn shape(&self) -> Shape<'_>
fn shape(&self) -> Shape<'_>
Возвращает форму узла. По форме идут обходы: выгрузка, статус, проверка.
Source§fn empty() -> Option<Self>
fn empty() -> Option<Self>
Пустое значение узла: раздел — с умолчаниями, последовательность и словарь — без элементов.
У скаляра пустого значения нет.
Source§fn sample() -> Option<Self>
fn sample() -> Option<Self>
Значение-образец для выгрузки-образца.
None, если для типа нет образца.Source§fn fill(&mut self)
fn fill(&mut self)
Наполняет узел образцом: пустые последовательности и словари получают по два элемента,
отсутствующие необязательные разделы — умолчания. Скаляры не меняются.
Source§impl PartialEq for ControlConfig
impl PartialEq for ControlConfig
impl StructuralPartialEq for ControlConfig
Auto Trait Implementations§
impl Forget for ControlConfig
impl Freeze for ControlConfig
impl Move for ControlConfig
impl RefUnwindSafe for ControlConfig
impl Send for ControlConfig
impl Sync for ControlConfig
impl Unpin for ControlConfig
impl UnsafeUnpin for ControlConfig
impl UnwindSafe for ControlConfig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> ExtensibleConfig for Twhere
T: Config,
impl<T> ExtensibleConfig for Twhere
T: Config,
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