pub enum TestNamespace {
Family,
Wiki,
Project,
}Expand description
A namespace id for testing.
Serves as a “public key” corresopnding to a TestNamespaceSecret.
Variants§
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for TestNamespace
impl<'arbitrary> Arbitrary<'arbitrary> for TestNamespace
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl AuthorisationToken<4, 4, 4, TestNamespace, TestSubspace, TestDigest> for TestSubspaceSignature
impl AuthorisationToken<4, 4, 4, TestNamespace, TestSubspace, TestDigest> for TestSubspaceSignature
Source§type CreationError = ()
type CreationError = ()
Emitted when the secret does not correspond to the subspace of the entry to authorise.
Determines whether self authorises the given entry.
Source§type Ingredients = TestSubspaceSecret
type Ingredients = TestSubspaceSecret
The type of the information you need in order to authorise an entry. For example, in Meadowcap, this would be a pair of a capability and a secret key.
Source§fn new_for_entry<E>(
entry: &E,
ingredients: &Self::Ingredients,
) -> Result<Self, Self::CreationError>
fn new_for_entry<E>( entry: &E, ingredients: &Self::Ingredients, ) -> Result<Self, Self::CreationError>
Creates an authorisation token for the given entry, if possible.
Source§impl Clone for TestNamespace
impl Clone for TestNamespace
Source§fn clone(&self) -> TestNamespace
fn clone(&self) -> TestNamespace
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 TestNamespace
impl Debug for TestNamespace
Source§impl Decodable for TestNamespace
impl Decodable for TestNamespace
Source§type ErrorReason = Blame
type ErrorReason = Blame
Reason why decoding can fail (beyond an unexpected end of input or a producer error).
Source§async fn decode<P>(
producer: &mut P,
) -> Result<Self, DecodeError<P::Final, P::Error, Self::ErrorReason>>
async fn decode<P>( producer: &mut P, ) -> Result<Self, DecodeError<P::Final, P::Error, Self::ErrorReason>>
Decodes the symbols produced by the given bulk producer into a
Self, or yields an error if the producer does not produce a valid encoding. Read moreSource§impl DecodableCanonic for TestNamespace
impl DecodableCanonic for TestNamespace
Source§type ErrorCanonic = Blame
type ErrorCanonic = Blame
The type for reporting that the sequence of symbols to decode was not a valid canonic encoding of any value of type
Self. Read moreSource§async fn decode_canonic<P>(
producer: &mut P,
) -> Result<Self, DecodeError<P::Final, P::Error, Self::ErrorCanonic>>
async fn decode_canonic<P>( producer: &mut P, ) -> Result<Self, DecodeError<P::Final, P::Error, Self::ErrorCanonic>>
Decodes the symbols produced by the given bulk producer into a
Self, and errors if the input encoding is not the canonical one.Source§impl Encodable for TestNamespace
impl Encodable for TestNamespace
Source§impl EncodableKnownLength for TestNamespace
impl EncodableKnownLength for TestNamespace
Source§fn len_of_encoding(&self) -> usize
fn len_of_encoding(&self) -> usize
Computes the number of symbols of the encoding of
self. A successful call to encode must feed exactly that many symbols into the bulk consumer.Source§impl GreatestElement for TestNamespace
impl GreatestElement for TestNamespace
Source§impl Hash for TestNamespace
impl Hash for TestNamespace
Source§impl LeastElement for TestNamespace
impl LeastElement for TestNamespace
Source§impl Ord for TestNamespace
impl Ord for TestNamespace
Source§fn cmp(&self, other: &TestNamespace) -> Ordering
fn cmp(&self, other: &TestNamespace) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TestNamespace
impl PartialEq for TestNamespace
Source§impl PartialOrd for TestNamespace
impl PartialOrd for TestNamespace
Source§impl TryPredecessor for TestNamespace
impl TryPredecessor for TestNamespace
Source§fn try_predecessor(&self) -> Option<Self>
fn try_predecessor(&self) -> Option<Self>
If
self has a predecessor, i.e., a unique greatest value which is strictly less than self, returns it. If there is no unique predecessor, returns None.Source§fn is_predecessor_of(&self, other: &Self) -> bool
fn is_predecessor_of(&self, other: &Self) -> bool
Returns
true iff self is the predecessor of other.Source§fn is_not_predecessor_of(&self, other: &Self) -> bool
fn is_not_predecessor_of(&self, other: &Self) -> bool
Returns
true iff self is not the predecessor of other.Source§impl TrySuccessor for TestNamespace
impl TrySuccessor for TestNamespace
Source§fn try_successor(&self) -> Option<Self>
fn try_successor(&self) -> Option<Self>
If
self has a successor, i.e., a unique least value which is strictly greater than self, returns it. If there is no unique successor, returns None.Source§fn is_successor_of(&self, other: &Self) -> bool
fn is_successor_of(&self, other: &Self) -> bool
Returns
true iff self is the successor of other.Source§fn is_not_successor_of(&self, other: &Self) -> bool
fn is_not_successor_of(&self, other: &Self) -> bool
Returns
true iff self is not the successor of other.impl Copy for TestNamespace
impl Eq for TestNamespace
impl PredecessorExceptForLeast for TestNamespace
impl StructuralPartialEq for TestNamespace
impl SuccessorExceptForGreatest for TestNamespace
Auto Trait Implementations§
impl Freeze for TestNamespace
impl RefUnwindSafe for TestNamespace
impl Send for TestNamespace
impl Sync for TestNamespace
impl Unpin for TestNamespace
impl UnwindSafe for TestNamespace
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, S> EncodableExt<S> for Twhere
T: Encodable<S>,
impl<T, S> EncodableExt<S> for Twhere
T: Encodable<S>,
Source§impl<T, S> EncodableKnownLengthExt<S> for Twhere
T: EncodableKnownLength<S>,
impl<T, S> EncodableKnownLengthExt<S> for Twhere
T: EncodableKnownLength<S>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more