pub struct ClientConfig { /* private fields */ }Expand description
Настройки каналов grpc.client: их получает каждый клиент, созданный фабрикой.
Implementations§
Source§impl ClientConfig
impl ClientConfig
Sourcepub fn connect_timeout(&self) -> Option<Duration>
pub fn connect_timeout(&self) -> Option<Duration>
Таймаут установки соединения.
Sourcepub fn idle_timeout(&self) -> Option<Duration>
pub fn idle_timeout(&self) -> Option<Duration>
Сколько держать простаивающее соединение.
Sourcepub fn max_receive_message_size(&self) -> u64
pub fn max_receive_message_size(&self) -> u64
Предел входящего сообщения.
Sourcepub fn max_send_message_size(&self) -> Option<u64>
pub fn max_send_message_size(&self) -> Option<u64>
Предел исходящего сообщения.
Sourcepub fn stream_window_size(&self) -> Option<u64>
pub fn stream_window_size(&self) -> Option<u64>
Начальное окно потока HTTP/2.
Sourcepub fn keep_alive(&self) -> Option<&KeepAliveConfig>
pub fn keep_alive(&self) -> Option<&KeepAliveConfig>
Настройки keepalive.
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§impl Config for ClientConfig
impl Config for ClientConfig
Source§const NAME: &'static str = "Client"
const NAME: &'static str = "Client"
Имя конфигурации — имя типа без суффикса
Config. Даёт имя файла: Configs/Http.yaml.Source§const KEY: &'static str = "client"
const KEY: &'static str = "client"
То же имя с маленькой первой буквы: ключ секции в общем
config.yaml.Source§const DOC: &'static str = "\u{41d}\u{430}\u{441}\u{442}\u{440}\u{43e}\u{439}\u{43a}\u{438} \u{43a}\u{430}\u{43d}\u{430}\u{43b}\u{43e}\u{432} `grpc.client`: \u{438}\u{445} \u{43f}\u{43e}\u{43b}\u{443}\u{447}\u{430}\u{435}\u{442} \u{43a}\u{430}\u{436}\u{434}\u{44b}\u{439} \u{43a}\u{43b}\u{438}\u{435}\u{43d}\u{442}, \u{441}\u{43e}\u{437}\u{434}\u{430}\u{43d}\u{43d}\u{44b}\u{439} \u{444}\u{430}\u{431}\u{440}\u{438}\u{43a}\u{43e}\u{439}."
const DOC: &'static str = "\u{41d}\u{430}\u{441}\u{442}\u{440}\u{43e}\u{439}\u{43a}\u{438} \u{43a}\u{430}\u{43d}\u{430}\u{43b}\u{43e}\u{432} `grpc.client`: \u{438}\u{445} \u{43f}\u{43e}\u{43b}\u{443}\u{447}\u{430}\u{435}\u{442} \u{43a}\u{430}\u{436}\u{434}\u{44b}\u{439} \u{43a}\u{43b}\u{438}\u{435}\u{43d}\u{442}, \u{441}\u{43e}\u{437}\u{434}\u{430}\u{43d}\u{43d}\u{44b}\u{439} \u{444}\u{430}\u{431}\u{440}\u{438}\u{43a}\u{43e}\u{439}."
Описание: первый абзац doc-комментария типа. У раздела без описания — пустая строка.
Source§impl Debug for ClientConfig
impl Debug for ClientConfig
Source§impl Default for ClientConfig
impl Default for ClientConfig
impl Eq for ClientConfig
Source§impl Node for ClientConfig
impl Node for ClientConfig
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 ClientConfig
impl PartialEq for ClientConfig
impl StructuralPartialEq for ClientConfig
Auto Trait Implementations§
impl Forget for ClientConfig
impl Freeze for ClientConfig
impl Move for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe for ClientConfig
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