pub enum DuplexRefusalCode {
Forbidden,
Unauthenticated,
TooManyCalls,
NotThisCall,
PastCredit,
TooMuchInput,
PersonRequired,
InputClosed,
OutOfSequence,
InvalidInput,
}Expand description
The gate’s terms for a duplex call (plexus-auth-core), re-exported so a
caller of this module needs no second import.
BIDIR-8: every typed refusal the gate makes over a duplex call — its
error_kind on the wire, and the reason of its audit record
(AuditRecordKind::DuplexRefused).
Variants§
Forbidden
The grant gate refused: at open, at a re-verify, or an answer by grant.
Unauthenticated
No one proved, a sign-in ended (signed out, revoked) or expired.
TooManyCalls
The connection’s calls are all open (too_many_calls {max}).
NotThisCall
A frame or an answer from a connection that is not the call’s.
PastCredit
An input item past the credit granted (past_credit {seq, credit}).
TooMuchInput
Past the ceiling a method opted into (too_much_input {limit, max},
limit items or bytes).
PersonRequired
A question that needs a person’s answer, answered by an agent.
InputClosed
A frame or an answer after the input half closed.
OutOfSequence
A frame out of sequence on a socket, which delivers in order: a broken
client (out_of_sequence {seq, expected}).
InvalidInput
An input item that does not decode as the method’s type
(invalid_input {seq}).
Implementations§
Trait Implementations§
Source§impl Clone for DuplexRefusalCode
impl Clone for DuplexRefusalCode
Source§fn clone(&self) -> DuplexRefusalCode
fn clone(&self) -> DuplexRefusalCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DuplexRefusalCode
Source§impl Debug for DuplexRefusalCode
impl Debug for DuplexRefusalCode
Source§impl<'de> Deserialize<'de> for DuplexRefusalCode
impl<'de> Deserialize<'de> for DuplexRefusalCode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DuplexRefusalCode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DuplexRefusalCode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for DuplexRefusalCode
Source§impl Hash for DuplexRefusalCode
impl Hash for DuplexRefusalCode
Source§impl PartialEq for DuplexRefusalCode
impl PartialEq for DuplexRefusalCode
Source§impl Serialize for DuplexRefusalCode
impl Serialize for DuplexRefusalCode
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for DuplexRefusalCode
Auto Trait Implementations§
impl Forget for DuplexRefusalCode
impl Freeze for DuplexRefusalCode
impl Move for DuplexRefusalCode
impl RefUnwindSafe for DuplexRefusalCode
impl Send for DuplexRefusalCode
impl Sync for DuplexRefusalCode
impl Unpin for DuplexRefusalCode
impl UnsafeUnpin for DuplexRefusalCode
impl UnwindSafe for DuplexRefusalCode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.