pub struct ResourceBuilder { /* private fields */ }
Expand description
Builder for creating resources with fluent API
Implementationsยง
Sourceยงimpl ResourceBuilder
impl ResourceBuilder
Sourcepub fn description<S: Into<String>>(self, description: S) -> Self
pub fn description<S: Into<String>>(self, description: S) -> Self
Set the resource description
Sourcepub fn build<H>(self, handler: H) -> Resourcewhere
H: ResourceHandler + 'static,
pub fn build<H>(self, handler: H) -> Resourcewhere
H: ResourceHandler + 'static,
Build the resource with the given handler
Auto Trait Implementationsยง
impl Freeze for ResourceBuilder
impl RefUnwindSafe for ResourceBuilder
impl Send for ResourceBuilder
impl Sync for ResourceBuilder
impl Unpin for ResourceBuilder
impl UnwindSafe for ResourceBuilder
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