pub enum RemoteMutationError {
Invalid {
index: usize,
source: PositionedRemoteParseError,
},
SemanticMismatch {
index: usize,
},
}Expand description
Error writing a Remotes field from caller-provided semantic values.
Variants§
Invalid
The rendered value is not valid standalone remote syntax.
Fields
§
source: PositionedRemoteParseErrorSafe parser reason without the rendered source text.
SemanticMismatch
Rendering and reparsing would change the semantic value.
Implementations§
Source§impl RemoteMutationError
impl RemoteMutationError
Sourcepub fn source_error(&self) -> Option<&PositionedRemoteParseError>
pub fn source_error(&self) -> Option<&PositionedRemoteParseError>
Returns the parser reason when rendering produced invalid syntax.
Trait Implementations§
Source§impl Clone for RemoteMutationError
impl Clone for RemoteMutationError
Source§impl Debug for RemoteMutationError
impl Debug for RemoteMutationError
Source§impl Display for RemoteMutationError
impl Display for RemoteMutationError
impl Eq for RemoteMutationError
Source§impl Error for RemoteMutationError
impl Error for RemoteMutationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for RemoteMutationError
impl PartialEq for RemoteMutationError
impl StructuralPartialEq for RemoteMutationError
Auto Trait Implementations§
impl Freeze for RemoteMutationError
impl RefUnwindSafe for RemoteMutationError
impl Send for RemoteMutationError
impl Sync for RemoteMutationError
impl Unpin for RemoteMutationError
impl UnsafeUnpin for RemoteMutationError
impl UnwindSafe for RemoteMutationError
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