pub struct HdfsClientBuilder { /* private fields */ }
Expand description
Builder for HdfsClient
Implementations§
Source§impl HdfsClientBuilder
impl HdfsClientBuilder
Sourcepub fn from_explicit_config(conf: Config) -> Self
pub fn from_explicit_config(conf: Config) -> Self
Creates new builder from the specified configuration
Sourcepub fn from_config() -> Self
pub fn from_config() -> Self
Creates new builder, filled with the configuration read from configuration files.
See comments at crate::config
for detailed semantics.
Sourcepub fn from_config_opt() -> Option<Self>
pub fn from_config_opt() -> Option<Self>
Creates new builder, filled with the configuration read from configuration files,
if those have been found. Returns None
otherwise. Note that invalid configuration files
casuse panic rather than returning None
.
pub fn alt_entrypoint(self, alt_entrypoint: Uri) -> Self
pub fn https_settings(self, https_settings: HttpsSettings) -> Self
pub fn natmap(self, natmap: NatMap) -> Self
pub fn default_timeout(self, timeout: Duration) -> Self
pub fn user_name(self, user_name: String) -> Self
pub fn doas(self, doas: String) -> Self
pub fn delegation_token(self, dt: String) -> Self
pub fn build(self) -> HdfsClient
Auto Trait Implementations§
impl !Freeze for HdfsClientBuilder
impl RefUnwindSafe for HdfsClientBuilder
impl !Send for HdfsClientBuilder
impl !Sync for HdfsClientBuilder
impl Unpin for HdfsClientBuilder
impl UnwindSafe for HdfsClientBuilder
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