[][src]Enum sn_messaging::SequenceRead

pub enum SequenceRead {
    Get(Address),
    GetRange {
        address: Address,
        range: (Index, Index),
    },
    GetLastEntry(Address),
    GetPublicPolicy(Address),
    GetPrivatePolicy(Address),
    GetUserPermissions {
        address: Address,
        user: User,
    },
    GetOwner(Address),
}

TODO: docs

Variants

Get(Address)

Get Sequence from the network.

GetRange

Get a range of entries from an Sequence object on the network.

Fields of GetRange

address: Address

Sequence address.

range: (Index, Index)

Range of entries to fetch.

For example, get 10 last entries: range: (Index::FromEnd(10), Index::FromEnd(0))

Get all entries: range: (Index::FromStart(0), Index::FromEnd(0))

Get first 5 entries: range: (Index::FromStart(0), Index::FromStart(5))

GetLastEntry(Address)

Get last entry from the Sequence.

GetPublicPolicy(Address)

List current policy

GetPrivatePolicy(Address)

List current policy

GetUserPermissions

Get current permissions for a specified user(s).

Fields of GetUserPermissions

address: Address

Sequence address.

user: User

User to get permissions for.

GetOwner(Address)

Get current owner.

Implementations

impl SequenceRead[src]

pub fn error(&self, error: Error) -> QueryResponse[src]

Creates a Response containing an error, with the Response variant corresponding to the Request variant.

pub fn authorisation_kind(&self) -> AuthorisationKind[src]

Returns the access categorisation of the request.

pub fn dst_address(&self) -> XorName[src]

Returns the address of the destination for request.

Trait Implementations

impl Clone for SequenceRead[src]

impl Debug for SequenceRead[src]

impl<'de> Deserialize<'de> for SequenceRead[src]

impl Eq for SequenceRead[src]

impl Hash for SequenceRead[src]

impl PartialEq<SequenceRead> for SequenceRead[src]

impl PartialOrd<SequenceRead> for SequenceRead[src]

impl Serialize for SequenceRead[src]

impl StructuralEq for SequenceRead[src]

impl StructuralPartialEq for SequenceRead[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Member for T where
    T: Clone + Eq + Hash
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,