pub struct MirrorConfigBuilder { /* private fields */ }
Expand description
Convenience wrapper for generating MirrorConfig values.
Implementations§
Source§impl MirrorConfigBuilder
impl MirrorConfigBuilder
pub fn new(mirror_url: impl Into<Uri>) -> Result<Self, MirrorConfigError>
pub fn mirror_url( self, mirror_url: impl Into<Uri>, ) -> Result<Self, (Self, MirrorConfigError)>
pub fn blob_mirror_url( self, blob_mirror_url: impl Into<Uri>, ) -> Result<Self, (Self, MirrorConfigError)>
pub fn subscribe(self, subscribe: bool) -> Self
pub fn build(self) -> MirrorConfig
Trait Implementations§
Source§impl Clone for MirrorConfigBuilder
impl Clone for MirrorConfigBuilder
Source§fn clone(&self) -> MirrorConfigBuilder
fn clone(&self) -> MirrorConfigBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MirrorConfigBuilder
impl Debug for MirrorConfigBuilder
Source§impl From<MirrorConfigBuilder> for MirrorConfig
impl From<MirrorConfigBuilder> for MirrorConfig
Source§fn from(builder: MirrorConfigBuilder) -> Self
fn from(builder: MirrorConfigBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for MirrorConfigBuilder
impl RefUnwindSafe for MirrorConfigBuilder
impl Send for MirrorConfigBuilder
impl Sync for MirrorConfigBuilder
impl Unpin for MirrorConfigBuilder
impl UnwindSafe for MirrorConfigBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)