pub struct Information {
pub version: Version,
pub capabilities: Capabilities,
pub limits: Limits,
pub features: Features,
}
Expand description
Information on a context.
Fields§
§version: Version
Version and profile of the current context.
capabilities: Capabilities
Capabilities of this context.
limits: Limits
Limits of this context.
features: Features
Features of this context.
Implementations§
Source§impl Information
impl Information
Sourcepub fn collect(context: &Context) -> Result<Self, UnsupportedContext>
pub fn collect(context: &Context) -> Result<Self, UnsupportedContext>
Collect information on the given context and check whether it is supported by the Gavle implementation or not.
Trait Implementations§
Source§impl Clone for Information
impl Clone for Information
Source§fn clone(&self) -> Information
fn clone(&self) -> Information
Returns a duplicate 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 Information
impl Debug for Information
Source§impl PartialEq for Information
impl PartialEq for Information
impl StructuralPartialEq for Information
Auto Trait Implementations§
impl Freeze for Information
impl RefUnwindSafe for Information
impl Send for Information
impl Sync for Information
impl Unpin for Information
impl UnwindSafe for Information
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