pub struct GunBuilder<'a> {
pub functions: GunFunctions,
pub options: GunOptions<'a>,
}
Fields§
§functions: GunFunctions
§options: GunOptions<'a>
Implementations§
Source§impl<'a> GunBuilder<'a>
impl<'a> GunBuilder<'a>
pub fn new() -> Self
pub fn new_with_options(options: GunOptions<'a>) -> Self
pub fn peers(&mut self, peers: &'a [&str]) -> Self
pub fn radisk(&mut self, radisk: bool) -> Self
pub fn local_storage(&mut self, local_storage: bool) -> Self
pub fn uuid(&mut self, uuid: fn() -> String) -> Self
pub fn build(&self) -> Gun<'_>
Trait Implementations§
Source§impl<'a> Clone for GunBuilder<'a>
impl<'a> Clone for GunBuilder<'a>
Source§fn clone(&self) -> GunBuilder<'a>
fn clone(&self) -> GunBuilder<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for GunBuilder<'a>
impl<'a> RefUnwindSafe for GunBuilder<'a>
impl<'a> Send for GunBuilder<'a>
impl<'a> Sync for GunBuilder<'a>
impl<'a> Unpin for GunBuilder<'a>
impl<'a> UnwindSafe for GunBuilder<'a>
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