Struct edgedb_tokio::Config
source · pub struct Config(_);
Expand description
Configuration of the client
Use Builder
to create an instance
Implementations§
source§impl Config
impl Config
sourcepub fn display_addr<'x>(&'x self) -> impl Display + 'x
pub fn display_addr<'x>(&'x self) -> impl Display + 'x
A displayable form for an address this builder will connect to
sourcepub fn as_credentials(&self) -> Result<Credentials, Error>
pub fn as_credentials(&self) -> Result<Credentials, Error>
Extract credentials from the Builder so they can be saved as JSON.
sourcepub fn local_instance_name(&self) -> Option<&str>
pub fn local_instance_name(&self) -> Option<&str>
Instance name if set and if it’s local
sourcepub fn instance_name(&self) -> Option<&InstanceName>
pub fn instance_name(&self) -> Option<&InstanceName>
Name of the instance if set
sourcepub fn secret_key(&self) -> Option<&str>
pub fn secret_key(&self) -> Option<&str>
Secret key if set
sourcepub fn http_url(&self, tls: bool) -> Option<String>
pub fn http_url(&self, tls: bool) -> Option<String>
Return HTTP(s) url to server
If not connected via unix socket
sourcepub fn with_password(self, password: &str) -> Config
pub fn with_password(self, password: &str) -> Config
Return the same config with changed password
Trait Implementations§
Auto Trait Implementations§
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