pub struct Config { /* private fields */ }Expand description
A config for configuring how tinc builds / generates code.
Implementations§
Source§impl Config
impl Config
Sourcepub fn disable_tinc_include(&mut self) -> &mut Self
pub fn disable_tinc_include(&mut self) -> &mut Self
Disable tinc auto-include. By default tinc will add its own annotations into the include path of protoc.
Sourcepub fn btree_map(&mut self, path: impl Display) -> &mut Self
pub fn btree_map(&mut self, path: impl Display) -> &mut Self
Specify a path to generate a BTreeMap instead of a HashMap for proto map.
Sourcepub fn bytes(&mut self, path: impl Display) -> &mut Self
pub fn bytes(&mut self, path: impl Display) -> &mut Self
Specify a path to generate bytes::Bytes instead of Vec<u8> for proto bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl !Send for Config
impl !Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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> 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