pub struct ViewBuilder { /* private fields */ }Expand description
Builder for creating view handles.
This is used internally by generated code to create properly configured view handles.
Implementations§
Source§impl ViewBuilder
impl ViewBuilder
pub fn new( connection: ConnectionManager, store: SharedStore, initial_data_timeout: Duration, ) -> Self
pub fn connection(&self) -> &ConnectionManager
pub fn store(&self) -> &SharedStore
pub fn initial_data_timeout(&self) -> Duration
Sourcepub fn view<T>(&self, view_path: &str) -> ViewHandle<T>
pub fn view<T>(&self, view_path: &str) -> ViewHandle<T>
Create a view handle.
Auto Trait Implementations§
impl Freeze for ViewBuilder
impl !RefUnwindSafe for ViewBuilder
impl Send for ViewBuilder
impl Sync for ViewBuilder
impl Unpin for ViewBuilder
impl !UnwindSafe for ViewBuilder
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