pub struct UnreadableValue { /* private fields */ }Expand description
A present property whose declared type is known exactly and whose stated value cannot be read exactly, bound to the request it answers.
The source states a value (never $): the property exists and holds
one. Only the value itself is unknown, so a capability may decide
presence, non-emptiness and the declared type, and must leave every
comparison of the value not evaluated.
Implementations§
Source§impl UnreadableValue
impl UnreadableValue
Sourcepub fn try_new(
request: PropertyRequest,
data_type: impl Into<String>,
evidence: Evidence,
reason: impl Into<String>,
) -> Result<Self, PropertyResolutionError>
pub fn try_new( request: PropertyRequest, data_type: impl Into<String>, evidence: Evidence, reason: impl Into<String>, ) -> Result<Self, PropertyResolutionError>
Creates a request-bound answer: the property holds a value of
data_type, in the source’s own vocabulary, that cannot be read
exactly for reason.
§Errors
PropertyResolutionError::InvalidRequest for a blank type or
reason, and PropertyResolutionError::InexactEvidence for evidence
that is not exact and reviewable or not from the requested object’s
source.
Sourcepub fn request(&self) -> &PropertyRequest
pub fn request(&self) -> &PropertyRequest
Bound request.
Trait Implementations§
Source§impl Clone for UnreadableValue
impl Clone for UnreadableValue
Source§impl Debug for UnreadableValue
impl Debug for UnreadableValue
impl Eq for UnreadableValue
Source§impl PartialEq for UnreadableValue
impl PartialEq for UnreadableValue
impl StructuralPartialEq for UnreadableValue
Auto Trait Implementations§
impl Freeze for UnreadableValue
impl RefUnwindSafe for UnreadableValue
impl Send for UnreadableValue
impl Sync for UnreadableValue
impl Unpin for UnreadableValue
impl UnsafeUnpin for UnreadableValue
impl UnwindSafe for UnreadableValue
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