pub struct Provider { /* private fields */ }Expand description
A backend a program could be given: what the matrix is asked about, what it declares about durability, and what endpoint it needs to be opened.
Implementations§
Source§impl Provider
impl Provider
Sourcepub fn new(
name: impl Into<String>,
surfaces: Vec<Surface>,
declared: Option<Declared>,
endpoint: EndpointSpec,
) -> Self
pub fn new( name: impl Into<String>, surfaces: Vec<Surface>, declared: Option<Declared>, endpoint: EndpointSpec, ) -> Self
Sourcepub fn declared(&self) -> Option<Declared>
pub fn declared(&self) -> Option<Declared>
Declared durability, if the provider’s table has one. None is unknown, not volatile.
Sourcepub fn endpoint(&self) -> &EndpointSpec
pub fn endpoint(&self) -> &EndpointSpec
What it needs to open.
Trait Implementations§
impl Eq for Provider
impl StructuralPartialEq for Provider
Auto Trait Implementations§
impl Freeze for Provider
impl RefUnwindSafe for Provider
impl Send for Provider
impl Sync for Provider
impl Unpin for Provider
impl UnsafeUnpin for Provider
impl UnwindSafe for Provider
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