pub enum PermissionError {
NotPermitted(String),
LowerBoundTooBroad(String),
UpperBoundTooBroad(String),
WalletMultiSourceRequired(String),
CardRevoked(String),
CardExpired(String),
InstallRecipientMismatch(String),
UnknownResourceClass(String),
InvalidPattern(String),
InvalidVerb(String),
InvalidOwner(String),
InvalidRecipient(String),
}Expand description
An expected refusal of a permission operation by the host.
Each case carries the host’s explanation.
Variants§
NotPermitted(String)
LowerBoundTooBroad(String)
UpperBoundTooBroad(String)
WalletMultiSourceRequired(String)
CardRevoked(String)
CardExpired(String)
InstallRecipientMismatch(String)
UnknownResourceClass(String)
InvalidPattern(String)
InvalidVerb(String)
InvalidOwner(String)
InvalidRecipient(String)
Implementations§
Trait Implementations§
Source§impl Clone for PermissionError
impl Clone for PermissionError
Source§impl Debug for PermissionError
impl Debug for PermissionError
Source§impl Display for PermissionError
impl Display for PermissionError
impl Eq for PermissionError
Source§impl Error for PermissionError
impl Error for PermissionError
1.30.0 · 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 FromSchema for PermissionError
impl FromSchema for PermissionError
fn from_value(value: &SchemaValue) -> Result<Self, FromSchemaError>
Source§impl FromWire for PermissionError
impl FromWire for PermissionError
fn read_wire( reader: &mut WireReader, index: ValueNodeIndex, ) -> Result<Self, WireError>
fn read_result_payload( reader: &mut WireReader, index: Option<i32>, ) -> Result<Self, WireError>
Source§impl IntoSchema for PermissionError
impl IntoSchema for PermissionError
fn type_id() -> TypeId
fn register_in(builder: &mut SchemaBuilder) -> SchemaType
fn to_value(&self) -> SchemaValue
Source§impl IntoWire for PermissionError
impl IntoWire for PermissionError
fn preflight(&self, resources: &mut WirePreflight) -> Result<(), WireError>
Source§async fn prepare_wire(&self) -> Result<(), WireError>
async fn prepare_wire(&self) -> Result<(), WireError>
Wrap native stream endpoints without reading from them. This is called
only after the complete value has passed resource preflight.
fn write_wire( &self, writer: &mut WireWriter, ) -> Result<ValueNodeIndex, WireError>
Source§const NEEDS_PREPARATION: bool = true
const NEEDS_PREPARATION: bool = true
False only when
prepare_wire is a no-op for every value of this type.
Resource preflight still runs regardless of this flag. Custom and derived
implementations prepare by default, including those with no stream schema.fn write_result_payload( &self, writer: &mut WireWriter, ) -> Result<Option<i32>, WireError>
Source§impl PartialEq for PermissionError
impl PartialEq for PermissionError
impl StructuralPartialEq for PermissionError
Source§impl WireSchema for PermissionError
impl WireSchema for PermissionError
fn contains_stream(seen: &mut HashSet<&'static str>) -> bool
fn append_schema(builder: &mut WireSchemaBuilder) -> TypeNodeIndex
fn wire_type_id() -> String
const IS_UNIT: bool = false
Auto Trait Implementations§
impl Freeze for PermissionError
impl RefUnwindSafe for PermissionError
impl Send for PermissionError
impl Sync for PermissionError
impl Unpin for PermissionError
impl UnsafeUnpin for PermissionError
impl UnwindSafe for PermissionError
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